Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 72
Default Document not saved at the end of macro

Hi All,

I've written code to delete unnecessary modules and copying a module content
into 'Thisworkbook'. Upto here its working fine and end of the macro I've
written Thisworkbook.save. While executing save statement I'm getting an
error saying 'Document not saved'. I'm clicking on 'Ok' button and I'm able
to save manually.

Is there any workaround to save document?

Advanced Thanks,
Vinod


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 24
Default Document not saved at the end of macro

Try using the term "activedocument" instead of "thisworkbook".

"Vinod" wrote:

Hi All,

I've written code to delete unnecessary modules and copying a module content
into 'Thisworkbook'. Upto here its working fine and end of the macro I've
written Thisworkbook.save. While executing save statement I'm getting an
error saying 'Document not saved'. I'm clicking on 'Ok' button and I'm able
to save manually.

Is there any workaround to save document?

Advanced Thanks,
Vinod


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
document not saved theHoysala Excel Worksheet Functions 1 May 23rd 08 06:17 PM
Document Not Saved HMH Excel Discussion (Misc queries) 2 May 9th 08 11:13 PM
Document not saved Courtneyf04 Excel Discussion (Misc queries) 0 July 31st 07 10:00 PM
Document not saved Geir Excel Discussion (Misc queries) 1 August 7th 05 12:50 PM
DOCUMENT NOT SAVED cwwolfdog Excel Discussion (Misc queries) 1 May 24th 05 11:38 PM


All times are GMT +1. The time now is 11:10 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"