#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 57
Default a doubt

I want to do something after a certain worksheet in excel is saved. Am
developing an automation addin to excel using c#, how can i
programmatically find out when a worksheet is saved? And, perform some
event(like, prompting the user: "you saved workbook.sheet* saved." when a
worksheet is saved?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,942
Default a doubt

hi
you can't save just a worksheet. you have to save the whole workbook.
thisworkbook has a before save event that you might be able to use to prompt
the user.

regards
FSt1

"NA_AB" wrote:

I want to do something after a certain worksheet in excel is saved. Am
developing an automation addin to excel using c#, how can i
programmatically find out when a worksheet is saved? And, perform some
event(like, prompting the user: "you saved workbook.sheet* saved." when a
worksheet is saved?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 57
Default a doubt

hey,

yep, i figured that out! :) thanks for replying... can we by any means know
programatically whether the user has chosen 'Yes' / 'No' from the pop-up 'Do
you want to save the changes made to ....xls?' whcih is shown when he clicks
the Close(X) button on the top right corner?!

Regards.

"FSt1" wrote:

hi
you can't save just a worksheet. you have to save the whole workbook.
thisworkbook has a before save event that you might be able to use to prompt
the user.

regards
FSt1

"NA_AB" wrote:

I want to do something after a certain worksheet in excel is saved. Am
developing an automation addin to excel using c#, how can i
programmatically find out when a worksheet is saved? And, perform some
event(like, prompting the user: "you saved workbook.sheet* saved." when a
worksheet is saved?

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
Macros Doubt Royal Excel Discussion (Misc queries) 1 December 17th 09 09:51 AM
doubt nibu Excel Worksheet Functions 2 August 15th 08 05:57 PM
I have a doubt! Jaleel Excel Discussion (Misc queries) 4 September 21st 06 01:51 PM
C# Excel Doubt rejijo Excel Programming 1 May 18th 05 12:20 PM
some doubt mango Excel Worksheet Functions 6 December 31st 04 01:42 PM


All times are GMT +1. The time now is 04:12 PM.

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"