ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   select adjustment tab in cell format dialog (https://www.excelbanter.com/excel-programming/351109-select-adjustment-tab-cell-format-dialog.html)

x taol

select adjustment tab in cell format dialog
 


i want to select(focus) 'adjustment' tab in cell format dialog(ctrl+1)
using sendkey method only.


*** Sent via Developersdex http://www.developersdex.com ***

Norman Jones

select adjustment tab in cell format dialog
 
Hi X Taol,

I am not sure which tab you want, but it should be possible to display the
required tab by using the dialogs collection, without recourse to SendKeys,

For example, if by 'adjustment tab' you mean the alignment tab, try:

Application.Dialogs(xlDialogAlignment).Show

The other tabs can each be accessed with one of the following instructions:

Application.Dialogs(xlDialogFormatNumber).Show
Application.Dialogs(xlDialogFormatFont).Show
Application.Dialogs(xlDialogBorder).Show
Application.Dialogs(xlDialogPatterns).Show
Application.Dialogs(xlDialogProtectDocument).Show


---
Regards,
Norman



"x taol" wrote in message
...


i want to select(focus) 'adjustment' tab in cell format dialog(ctrl+1)
using sendkey method only.


*** Sent via Developersdex http://www.developersdex.com ***




x taol

select adjustment tab in cell format dialog
 

thanks, but i want to do like that, because ctrl+z. namely undo
function.
sendkey is operated undo function. but your answer is not...


*** Sent via Developersdex http://www.developersdex.com ***


All times are GMT +1. The time now is 08:26 AM.

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