Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default What are ....

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.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default What are ....

Hi
try:
dim wbk as workbook
set wbk = workbooks.open "C:\temp\abc.xls"
'do something with wbk
wbk.save
wbk.close

-----Original Message-----
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.

.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default What are ....

frank made a typo!.. line should read:

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


keepITcool




"Frank Kabel" wrote:

Hi
try:
dim wbk as workbook
set wbk = workbooks.open "C:\temp\abc.xls"
'do something with wbk
wbk.save
wbk.close

-----Original Message-----
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.

.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 863
Default What are ....

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.

On Wed, 22 Sep 2004 03:04:23 -0700, "Haim"
wrote:

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.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:34 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"