cell reference

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am attempting to write code that will activate a particular workbook based
upon a workbook name that is entered into cell d2. Below is my feeble
attempt that is not working... any help is appreciated.

Dim x As Range
Set x = Range(D2)

Workbooks (x).Activate
 
Hi
you may try
workbooks(x.value & ".xls").activate

Note: The other workbook has to be open for this statement!
 

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

Back
Top