What are ....

  • Thread starter Thread starter Haim
  • Start date Start date
H

Haim

Hi,

What are the Visual Basic commands for:

1. Open Excel file called "abc"

2. Save the "abc" Excel file

3. Exit from the "abc" Excel file


Thank you,

Haim.
 
Hi
try:
dim wbk as workbook
set wbk = workbooks.open "C:\temp\abc.xls"
'do something with wbk
wbk.save
wbk.close
 
frank made a typo!.. line should read:

set wkb = workbooks.open("C:\temp\abc.xls")


keepITcool
 
A quicker way to find out is to turn on the macro recorder and do it manually,
then look at the code the recorder produced.
 

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