Named Range VBA

IanT

Registered User.
Local time
Today, 23:11
Joined
Nov 30, 2001
Messages
191
Hi

I am tryingto use the code below to update the Named Range Excel but it errors, can anyone advise why!

ActiveWorkbook.Names.Add Name:="NOT", RefersToR1C1:= _
"=OFFSET(Extract!$BE$1,0,0,MATCH(" * ",Extract!$BE:BE,-1),1)"
 
Hi, Ian,

the use of CountA instead of Match as well as the use of R1C1 for the ranges may help:

Code:
ActiveWorkbook.Names.Add Name:="NOT", RefersToR1C1:= _
    "=OFFSET(Extract!R1C57,0,0,COUNTA(Extract!C57)-1)"
Ciao,
Holger
 
Last edited:

Users who are viewing this thread

Back
Top Bottom