select adjustment tab in cell format dialog

  • Thread starter Thread starter x taol
  • Start date Start date
X

x taol

i want to select(focus) 'adjustment' tab in cell format dialog(ctrl+1)
using sendkey method only.
 
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
 
thanks, but i want to do like that, because ctrl+z. namely undo
function.
sendkey is operated undo function. but your answer is not...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top