Shortcut Key - Personal.xlsb

davidhall

Board Regular
Joined
Mar 6, 2011
Messages
174
I have recorded a macro that I have stored in the personal.xlsb file. It is assigned to a module in the personal.xlsb file with the shortcut key ctrl+shift+q that makes it run.

When I close the personal.xlsb workbook and save the changes, I try and run that same shortcut key in another workbook and it doesn't seem to work. I'm trying to apply this same shortcut key macro to any excel workbook I open.

Here is my code.




Sub SelectAllUnmerge()
'
' SelectAllUnmerge Macro
'
' Keyboard Shortcut: Ctrl+Shift+Q
'
ActiveSheet.Cells.Select
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlBottom
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
ActiveSheet.Cells.Select
Selection.Copy
End Sub


Any suggestions?
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
If you close the Personal workbook and save changes then it's saved, but you need to have Personal open for the macro to be available. Does the macro run OK if you open the macro from the macro list & click Run?
 
Upvote 0
Personal.xlsb should reside in the XlStart folder and open when Excel opens but this is normally set as a hidden file so you don't see it, but your macros are always available. If it doesn't open, your macros will not be available. If you store it in ThisWorkbook it will only be available when the workbook it is in is open.
 
Upvote 0

Forum statistics

Threads
1,224,594
Messages
6,179,795
Members
452,943
Latest member
Newbie4296

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