View & Activate Workbook with Shortcut Key

TangentialAccel

New Member
Joined
Jan 22, 2018
Messages
7
Hi,

I have workbook that I would like to bring to the foreground and activate when I press an assigned shortcut key (even if the workbook isn't active). The idea is that the workbook could be minimized, hidden behind other windows, or visible, and when the shortcut key is pressed, it will activate the workbook so I can directly edit it.

I have tried assigning a shortcut key within windows to open a workbook but the problem is that it tries to open the file even if the file is already open.

So, I was wondering if this can be done with VB code? I've tried a couple of things, but nothing that works when the workbook is deactivated or minimized.

Thanks in advance...
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Not as straight forward as you may think unless you are familiar with Macros and PERSONAL.xlsb

You can write a Macro and assign a shortcut to it to do what you ask. However, for the macro to work from ANY open workbook you need to store the macro in PERSONAL.xlsb which is a hidden workbook that opens every time you open Excel.

If you struggle with implementation, come back.
 
Upvote 0
Gallen,

Thank you for your input. The issue I have with this method is that the user has to be in Excel for the shortcut and macro to work...at least as far was I can see.

My goal is for the user to be able to bring the Excel workbook up with the shortcut key even if the user is in another application like Chrome, Word, etc.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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