ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Showing built in dialogue boxes (https://www.excelbanter.com/excel-programming/310863-showing-built-dialogue-boxes.html)

No Name

Showing built in dialogue boxes
 
Hi All,

How can I show Excel's built in dialogue boxes e.g. Page
Set Up with a macro. For example, if the user clicks a
custom button embeded on a sheet, the dialogue box for
page set up will appear?

Thanks in advance

Norman Jones

Showing built in dialogue boxes
 
Try:

Application.Dialogs(xlDialogPageSetup).Show

---
Regards,
Norman



wrote in message
...
Hi All,

How can I show Excel's built in dialogue boxes e.g. Page
Set Up with a macro. For example, if the user clicks a
custom button embeded on a sheet, the dialogue box for
page set up will appear?

Thanks in advance




Jan Karel Pieterse

Showing built in dialogue boxes
 
How can I show Excel's built in dialogue boxes e.g. Page
Set Up with a macro. For example, if the user clicks a
custom button embeded on a sheet, the dialogue box for
page set up will appear?


Application.Dialogsheets(....).Show
You'll get a list of possible dialogs from intellisense once you type
the first (

Regards,

Jan Karel Pieterse
Excel MVP
www.jkp-ads.com


Jan Karel Pieterse

Showing built in dialogue boxes
 
Oops, that should've been Dialogs, not Dialogsheets.

Regards,

Jan Karel Pieterse
Excel MVP
www.jkp-ads.com



All times are GMT +1. The time now is 07:51 AM.

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