ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How To Call A Function When A User Activates a Dialog Box (https://www.excelbanter.com/excel-programming/422101-how-call-function-when-user-activates-dialog-box.html)

R Tanner

How To Call A Function When A User Activates a Dialog Box
 
I have a very in depth drill down model I did in a spreadsheet. This
spreadsheet has many buttons and checkboxes, which are hidden/unhidden
when rows are hidden/unhidden. When the workbook is closed a function
is called. This function unhides all rows and then unhides all
checkboxes and buttons. I would like to call this same function when
the user goes to the office button and sends the workbook. Otherwise,
all buttons/checkboxes are displayed when the workbook is sent, but
the rows are still hidden. i.e., the whole thing is screwed up. This
is going to upper management, so I have to try and safeguard stuff
like that. :)

Peter T

How To Call A Function When A User Activates a Dialog Box
 
Could you explain the question

Regards,
Peter T

"R Tanner" wrote in message
...
I have a very in depth drill down model I did in a spreadsheet. This
spreadsheet has many buttons and checkboxes, which are hidden/unhidden
when rows are hidden/unhidden. When the workbook is closed a function
is called. This function unhides all rows and then unhides all
checkboxes and buttons. I would like to call this same function when
the user goes to the office button and sends the workbook. Otherwise,
all buttons/checkboxes are displayed when the workbook is sent, but
the rows are still hidden. i.e., the whole thing is screwed up. This
is going to upper management, so I have to try and safeguard stuff
like that. :)




R Tanner

How To Call A Function When A User Activates a Dialog Box
 
On Jan 7, 9:23 am, "Peter T" <peter_t@discussions wrote:
Could you explain the question

Regards,
Peter T

"R Tanner" wrote in message

...

I have a very in depth drill down model I did in a spreadsheet. This
spreadsheet has many buttons and checkboxes, which are hidden/unhidden
when rows are hidden/unhidden. When the workbook is closed a function
is called. This function unhides all rows and then unhides all
checkboxes and buttons. I would like to call this same function when
the user goes to the office button and sends the workbook. Otherwise,
all buttons/checkboxes are displayed when the workbook is sent, but
the rows are still hidden. i.e., the whole thing is screwed up. This
is going to upper management, so I have to try and safeguard stuff
like that. :)


If a user goes to the office button and selects 'Send', an email is
opened allowing the user to send the activeworkbook as an attachment.
I want to run a function on that workbook before it is sent in the
email. How can I call that function via code when the user selects to
send the workbook as a PDF, XPS, or email?

Peter T

How To Call A Function When A User Activates a Dialog Box
 
office button and selects 'Send'

Where is that, do you mean File/SendTo/more options

Regards,
Peter T

"R Tanner" wrote in message
...
On Jan 7, 9:23 am, "Peter T" <peter_t@discussions wrote:
Could you explain the question

Regards,
Peter T

"R Tanner" wrote in message

...

I have a very in depth drill down model I did in a spreadsheet. This
spreadsheet has many buttons and checkboxes, which are hidden/unhidden
when rows are hidden/unhidden. When the workbook is closed a function
is called. This function unhides all rows and then unhides all
checkboxes and buttons. I would like to call this same function when
the user goes to the office button and sends the workbook. Otherwise,
all buttons/checkboxes are displayed when the workbook is sent, but
the rows are still hidden. i.e., the whole thing is screwed up. This
is going to upper management, so I have to try and safeguard stuff
like that. :)


If a user goes to the office button and selects 'Send', an email is
opened allowing the user to send the activeworkbook as an attachment.
I want to run a function on that workbook before it is sent in the
email. How can I call that function via code when the user selects to
send the workbook as a PDF, XPS, or email?





All times are GMT +1. The time now is 10:33 PM.

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