In an Excel worksheet, I have a range name “LOOPBACK_IP”.
I want to programmatically find the starting row of this range name.
With Powershell, if I want to find the value of this range, I use (after assigning $ws variable a worksheet):
write-host $ws.Range("LOOPBACK_IP").Value2
But to find the location (i.e. row, column) of a range name, what do I do?
Thanks.
The first row is the first element of $ws.Range(“LOOPBACK_IP”).Rows
… the property for the row number is .Row
For example in VBA, the following shows a msgbox with the number of each row