VBA Code required..

mdileep

Board Regular
Joined
Dec 8, 2019
Messages
58
Office Version
  1. 2007
Platform
  1. Windows
  2. Mobile
I have an Excel workbook that contains 31 sheets. I fill data on each sheet in the range from B6 to CK6, using the Tab key to move the cursor. I want to move the cursor from CK6 back to B7, and then from CK7 to B8, and so on until CK29, using VBA code or any shortcut method. Can anybody help, please?
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Normally if you use Tab to move all the way from B6 to CK6 then if you press Enter after filling CK6 the cursor will move back to B7.
I am not sure if Excel Options > Advanced > Cursor movement> Logical has any effect on this behavior.
Other keyboard shortcuts to move fast across the sheet: Ctrl + Any Arrow key - this will move you to the next Blank/Non-blank cell in the direction of the arrow .
pressing Home will take to column A on the active row. Ctrl+Home takes you to A1.
Ctrl+End takes you to the bottom-right cell of the sheet's UsedRange.
If you hold down Shift during such movements you get the added benefit of selecting the cells you skip.
Ctrl+PageUp / Ctrl+PageDown will let you switch to the next sheet on the Left/Right of the active one.
etc....

IMO involving VBA for this has more drawbacks than benefits.
Search the web for Excel keyboard Shortcuts - surely you will find plenty of sources. Or try this one - it seems to be quite comprehensive.
 
Upvote 0
Normally if you use Tab to move all the way from B6 to CK6 then if you press Enter after filling CK6 the cursor will move back to B7.
I am not sure if Excel Options > Advanced > Cursor movement> Logical has any effect on this behavior.
Other keyboard shortcuts to move fast across the sheet: Ctrl + Any Arrow key - this will move you to the next Blank/Non-blank cell in the direction of the arrow .
pressing Home will take to column A on the active row. Ctrl+Home takes you to A1.
Ctrl+End takes you to the bottom-right cell of the sheet's UsedRange.
If you hold down Shift during such movements you get the added benefit of selecting the cells you skip.
Ctrl+PageUp / Ctrl+PageDown will let you switch to the next sheet on the Left/Right of the active one.
etc....

IMO involving VBA for this has more drawbacks than benefits.
Search the web for Excel keyboard Shortcuts - surely you will find plenty of sources. Or try this one - it seems to be quite comprehensive.
Thanks, But by use Tab to move all the way from B6 to CK6 then if I press Enter after filling CK6 the cursor will move back to CK7.
 
Upvote 0
IMO, it is pointless for Enter to do the same thing as Tab.
So you can change Excel Options like this:
1723542113497.png

... or Use the Ctrl+Arrow shortcuts.
 
Upvote 0
I have hidden all columns after CK:6 and protected the sheet. By doing this, my cell selection moves as I desire.
Thanks
 
Upvote 0

Forum statistics

Threads
1,223,714
Messages
6,174,052
Members
452,542
Latest member
Bricklin

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