Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Harley Evans   on Sep 13 In MS Office Category.

  
Question Answered By: Andrew Levensky   on Sep 13

try
Selection.name = "LocCode"

Do you realise that
selection.cells(2,4).value
is the value in the cell  3 across to the right and one down from
selected cell?

Your code  will leave you with a variable  called LocCode containing
whatever was in that cell 3 across & 1 down, and a named range  called
LocCode on the active sheet.

Share: 

 

This Question has 4 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Error when using variable to name a range Or get search suggestion and latest updates.


Tagged: