excel file paths

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

Guest

Is there ant way to name a file/workbook path in a non-active workbook?
 
The only way to name a file (or change its path) is to save it (to a different
location)?

And if you're writing code to do this, the workbook doesn't need to be active.

dim wkbk1 as workbook
dim wkbk2 as workbook

set wkbk1 = workbooks("book1.xls")
set wkbk2 = workbooks("book2.xls")

wkbk1.activate
'now wkbk1 is active

wkbk2.saveas filename:="c:\temp\book99.xls", fileformat:=xlworkbooknormal
 

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