Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Syntax error (simple)
I get a compile error "Invalid use of property on the "RefersTo" method.
What am I doing wrong, please? I am trying to set a locally defined name "Header" on each worksheet in the workbook to refer to $AZ$102:$BH$147 within the worksheet to which the respective name is localised. Private Sub Fixnames() Dim wWS As Worksheet Dim R As Range With Application.ThisWorkbook For Each wWS In .Worksheets Set R = wWS.Range("$AZ$102:$BH$147") wWS.Names("Header").RefersTo R Next wWS End With 'Application.ThisWorkbook End Sub 'Fixnames() -- Return email address is not as DEEP as it appears |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
syntax error - help | Excel Discussion (Misc queries) | |||
question about syntax in a simple macro... | Excel Discussion (Misc queries) | |||
Syntax error. | Excel Programming | |||
Syntax Error Runtime Error '424' Object Required | Excel Programming | |||
need help with simple syntax error | Excel Programming |