IP Tool Guide
IP Tool (Excel Macro) — Step‑by‑Step Run Guide (English)
1) What you need (Prerequisites)
- Microsoft
Excel Desktop (Windows/Mac) is required. (Macros do not run in Excel
Online / browser Excel.)
- The
tool file must be macro‑enabled: *.xlsm
- When
you open the file, you must allow macros by clicking Enable Content /
Enable Macros (if prompted).
2) File structure (Do not change headers)
- Open
the tool file.
- Go to
the sheet named Input.
- Confirm
the columns (row 1 headers) are exactly:
Site | Hub | Network | gateway | IP
✅ Only the gateway column
is mandatory input.
3) How to enter input
- In Input
sheet, fill Column D (gateway) with values like:
- IPv4
example: 10.71.149.94/28
- IPv6
example: 1234:56:84:789a:0:BcA:0:a001/120
- You
may also fill Site and Hub columns if you want (optional).
- Leave Network
and IP columns empty — the tool will fill them in the output.
4) Run the tool (Macro)
Run via Macro List
- Press ALT
+ F8
- Select
the macro:
Build_OUTPUT_With_IPv6_UserPrompt - Click Run
What happens next
- A pop‑up
will ask:
“IPv6: How many usable IPs you want?”
Enter a number like 16 (or 32/50/etc.) and press OK.
5) Where to find the output
- After
the macro finishes, a new sheet named OUTPUT is created.
- In
OUTPUT, you will see the same columns:
Site | Hub | Network | gateway | IP - The
tool will:
- Fill
Network automatically (network/prefix).
- Generate
IPv4 pool based on prefix rules.
- Generate
IPv6 first N usable IPs (N = the number you entered), starting
from gateway+1.
✅ You can now copy the results
from OUTPUT and use them anywhere.
Notes (Important)
- Do
not rename the Input sheet and do not change the header names.
- Each
time you run the macro, the tool recreates/clears the OUTPUT sheet
(so keep a backup if you manually edit OUTPUT).
Troubleshooting (Quick Fixes)
A) “No output / OUTPUT sheet not created”
Cause: Macros are blocked.
Fix:
- Close
Excel
- Reopen
the file
- Click Enable
Editing (if shown) and Enable Content / Enable Macros
B) Macro name not visible in ALT+F8 list
Cause: File saved as .xlsx (macros removed).
Fix: Save as Excel Macro‑Enabled Workbook (.xlsm) and reopen.
C) Company laptop shows “Macros are disabled by admin”
Cause: Organization policy.
Fix options:
- Ask IT
to allow macros for this file, OR
- Add
the folder to Trusted Locations (Excel → Options → Trust Center →
Trusted Locations)
D) Wrong/blank output for a row
Cause: Gateway format incorrect or blank.
Fix: Ensure Column D has valid IP/prefix format.
- Open
file → 2) Enable macros → 3) Fill gateway → 4) Run macro → 5) Take OUTPUT.
Comments
Post a Comment