Problem creating a named range
On Sun, 27 Jul 2008 16:49:29 -0700, headly
wrote:
Code looks like this:
ActiveWorkbook.Names.Add Name:=varName, RefersTo:="Sheet!" & varStartCell
Creates a name, which I cannot use, because it is surrounded by quotation "
" symbols.
Note about Varname: is created after stripping out spaces from user entered
input; varStartCell is an absolute reference like $A$5
TY
You're very close to the correct format. Note the equal sign AFTER the initial
quote.
ActiveWorkbook.Names.Add Name:=varName, RefersTo:="=Sheet!" & varStartCell
--ron
|