Well there ya go

Johnny C

Well-known Member
Joined
Nov 7, 2006
Messages
1,069
Office Version
  1. 365
Platform
  1. Windows
I've been writing Excel macros since Excel v2 (1991?) 27 years, and I only just discovered ctrl+shift to autocomplete a variable name etc.

OK I know it's only been relevant since VBA appeared but that must still be 20 years+ ... the amount of time I've wasted scrolling to the Dim and copy/pasting it.

Are there any other handy shortcuts like that?
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Doesn't do that for me. Ctrl+Shift doesn't do anything. Ctrl+j and then shift would work.
 
Upvote 0
Lol I got trigger happy.
It's ctrl+Space and has to be at the start of a row.
Ctrl+j works (no shift) and does it mid-row which is even better, cheers!
 
Last edited:
Upvote 0
Johnny

What do you mean 'midrow'?

CTRL+SPACE should work anywhere.
 
Upvote 0
FWIW, you'll see these shortcuts listed when you dropdown the menus in the VBE.
 
Upvote 0
It's a minor distinction and only rarely an issue I guess but if you've got a variable declared and there's nothing with a longer version of the name e.g. you've got X declared, ctrl-shift assumes that's what you want and does nothing if the cursor is in the word just jumps to the end. If you had X and XX it would bring the list up. Ctrl-j offers a list even if the variable name is declared and is not a shorter version of anything else. One is autocomplete, one is List Objects, both useful at different times.

I can't ever recall looking at the edit menu. I've just seen outdent which I also wish I'd found years ago. Doh!
 
Last edited:
Upvote 0
Ctrl+Space works for me. A new trick I never knew about.
Using Excel 2013
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,757
Messages
6,174,331
Members
452,555
Latest member
colc007

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