Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
PM PM is offline
external usenet poster
 
Posts: 16
Default Saving Excel Workbook in VB6

Hi!

My Workbook is referenced in my VB program as MyWB. I save it with

MyWB.SaveAs FileName:NewName

Now I want to work with NewName. The following does not work :

Set MyWB = Excel.ActiveWorkbook (for some reason ActiveWorkbook is
empty...)

Anyone know how to reference the new Workbook ?

Pat


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 42
Default Saving Excel Workbook in VB6

This should work for u.

ActiveWorkbook.Activate
MyWB = ActiveWorkbook.Name


-----Original Message-----
Hi!

My Workbook is referenced in my VB program as MyWB. I

save it with

MyWB.SaveAs FileName:NewName

Now I want to work with NewName. The following does not

work :

Set MyWB = Excel.ActiveWorkbook (for some reason

ActiveWorkbook is
empty...)

Anyone know how to reference the new Workbook ?

Pat


.

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Saving Excel workbook Shazza Excel Discussion (Misc queries) 4 October 14th 08 10:44 PM
Saving an Excel Workbook Neil Pearce Excel Discussion (Misc queries) 5 May 9th 08 05:53 PM
Saving a workbook in Excel 2003 serge Excel Discussion (Misc queries) 0 February 9th 06 04:26 PM
In Excel saving just a tab of a workbook PC Metal Fabrications Excel Discussion (Misc queries) 1 November 23rd 05 07:50 PM
Saving a Workbook: Forcing User to Rename before Saving Rollin_Again[_6_] Excel Programming 5 April 16th 04 02:54 PM


All times are GMT +1. The time now is 06:27 AM.

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"