Emulate "Ctrl+[" via VBA

Darker0ne

New Member
Joined
May 6, 2014
Messages
17
Hello!

I'm trying to create a macro, that I can then place in the "Quick Access Toolbar" that does the same as "Ctrl+[".
My Excel is Portuguese, and I can't find a way to make that shortcut working.
So, I thought that I could use the SendKeys VBA command.
But doesn't seem to work either.

I'm writting:

SendKeys "^{]}"

But it just prints the "[", instead of toggling anything.

Can someone help me with this please?

Thank you!
 
Hello,

I just tested the code, works good except for the part of going for other sheets...

Do you know any work around this part?

Thank you for your help so far, rest of the code works perfectly ! :biggrin:
 
Upvote 0

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Ok I found something similar.
Is an option caled "Allow Editing direclt in cells".
Now when I double click a cell, it takes me to the cell, even if it is on another sheet.
Very un-intuitive...

Anyway thank you so much for your help!
 
Upvote 0

Forum statistics

Threads
1,216,103
Messages
6,128,854
Members
449,472
Latest member
ebc9

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top