ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   a doubt (https://www.excelbanter.com/excel-programming/425674-doubt.html)

NA_AB[_2_]

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?

FSt1

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?


NA_AB[_2_]

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?



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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com