ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Code to display dialog for unhiding sheets (https://www.excelbanter.com/excel-programming/271389-re-code-display-dialog-unhiding-sheets.html)

Rob Bovey

Code to display dialog for unhiding sheets
 
"ken" wrote in message
...
How can I use code to display the dialog one sees on using
the menu Format/Sheet/Unhide? Application.Dialogs
(xlDialogUnhide).Show gives me hidden workbooks.


Hi Ken,

Someone at MS got these constants mixed up in the object model. Use
xlDialogWorkbookUnhide to show the Unhide Sheet dialog and xlDialogUnhide to
show the unhide workbook dialog.

--
Rob Bovey, MCSE, MCSD, Excel MVP
Application Professionals
http://www.appspro.com/

* Please post all replies to this newsgroup *
* I delete all unsolicited e-mail responses *



ken

Code to display dialog for unhiding sheets
 
Thank you. I thought it was rather counterintuitive.
-----Original Message-----
"ken" wrote in message
...
How can I use code to display the dialog one sees on

using
the menu Format/Sheet/Unhide? Application.Dialogs
(xlDialogUnhide).Show gives me hidden workbooks.


Hi Ken,

Someone at MS got these constants mixed up in the

object model. Use
xlDialogWorkbookUnhide to show the Unhide Sheet dialog

and xlDialogUnhide to
show the unhide workbook dialog.

--
Rob Bovey, MCSE, MCSD, Excel MVP
Application Professionals
http://www.appspro.com/

* Please post all replies to this newsgroup *
* I delete all unsolicited e-mail responses *


.



All times are GMT +1. The time now is 02:42 PM.

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