Adding the contents of a string variable as a named range

  • Thread starter ragtopcaddy via AccessMonster.com
  • Start date
R

ragtopcaddy via AccessMonster.com

How do I implement the following where rngName is a string variable?:

WkBk.Names.Add Name:=rngName, RefersToR1C1:="=" & wkshtName & "!" &
ActiveCell.CurrentRegion.Address

As it is, I get the msg, "Run-Time Error '1004'" "The formula you typed
contains an error"

Thanks,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top