seting a workbook to a varible name

  • Thread starter Thread starter steve
  • Start date Start date
S

steve

i forgot how do i set a workbook to a varible name
without using a for each, im sure im just forgeting
something small but cant rember...

pls help me
 
Dim WBVar As WorkBook

Set WBVar = Workbooks("Book1.xls")

Is that what you mean? - Piku
 
lol

knew i was missing some thing simple
had the var name and the activeworkbook switched

lol
 

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