Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,069
Default How save active workbook w/o knowing name

I tried "ActiveWorkbook.Save", but I don't think this saved the workbook. I
have a bunch of macros that update data on various sheets in various
workbooks and want to save the entire workbook at the end of each macro
without knowing which workbook the macro is running in. What is the correct
command?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default How save active workbook w/o knowing name

that works for me

--


Gary


"John" wrote in message
...
I tried "ActiveWorkbook.Save", but I don't think this saved the workbook.
I
have a bunch of macros that update data on various sheets in various
workbooks and want to save the entire workbook at the end of each macro
without knowing which workbook the macro is running in. What is the
correct
command?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default How save active workbook w/o knowing name

Hi John,

If your intention is to save the active workbook, then your code:

ActiveWorkbook.Save

is correct.

I tried "ActiveWorkbook.Save", but I don't think this saved the workbook


Are you sure that the active workbook was the one that you expected?

---
Regards,
Norman


"John" wrote in message
...
I tried "ActiveWorkbook.Save", but I don't think this saved the workbook.
I
have a bunch of macros that update data on various sheets in various
workbooks and want to save the entire workbook at the end of each macro
without knowing which workbook the macro is running in. What is the
correct
command?



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default How save active workbook w/o knowing name

without knowing which workbook the macro is running in

It's not completely clear from your post whether the macros and data are
located in the same workbooks.
Maybe ThisWorkbook.Save is what you need (if your macro is operating on data
in the same workbook as the macro location).

Tim

--
Tim Williams
Palo Alto, CA


"John" wrote in message
...
I tried "ActiveWorkbook.Save", but I don't think this saved the workbook.

I
have a bunch of macros that update data on various sheets in various
workbooks and want to save the entire workbook at the end of each macro
without knowing which workbook the macro is running in. What is the

correct
command?



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
How to save a workbook to an active Web Page? Nadia Excel Discussion (Misc queries) 0 May 2nd 08 06:23 PM
Share Workbook - Knowing who is in it. B Baggins Excel Discussion (Misc queries) 0 January 24th 08 10:41 AM
Macro: Exit active workbook without save? Don Excel Worksheet Functions 0 May 20th 05 06:47 AM
opening a workbook without knowing its exact location Johan[_6_] Excel Programming 3 December 31st 04 09:33 AM
Preventing opening workbook inside active workbook. Serge[_4_] Excel Programming 2 November 4th 03 07:51 PM


All times are GMT +1. The time now is 02:46 AM.

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

About Us

"It's about Microsoft Excel"