Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA ??: ctrl-arrow shortcut

I would like to imitate the ctrl-arrow shortcut I normally use in Excel
to jump over empty cells to reach the next filled cell OR to jump to
the last filled cell in a row or column.

Can anyone help with VBA script for this?

Many thanks --
Erik


---
Message posted from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA ??: ctrl-arrow shortcut

This code can be obtained by recording a macro whilst you make those ke
strokes

Here are some code to help you

range("a1")..End(xlDown).Select

or

range("a65536")..End(xlUp).Select

or

range("a1").End(xlToRight).Select


or

range("z1").End(xlToLeft).Select


r = range("a1")..End(xlDown).ro

--
Message posted from http://www.ExcelForum.com

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA ??: ctrl-arrow shortcut

Thanks for the tip and the advice about recording keystrokes.

Cheers,
Erik


---
Message posted from http://www.ExcelForum.com/

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ctrl+Shift+Arrow key ckneo Excel Discussion (Misc queries) 1 December 19th 09 09:46 AM
ctrl+shift+arrow keyboard shortcut issue when typing function Excel-lent[_2_] Excel Worksheet Functions 0 August 24th 09 09:01 PM
Using Ctrl-arrow to move around excel Patrick New Users to Excel 1 September 4th 08 09:41 AM
why dont shift+arrow or ctrl+arrow work in 2007 Naguib Excel Discussion (Misc queries) 1 July 24th 07 04:40 PM
Ctrl+Shift+arrow briansetondavis Excel Worksheet Functions 1 February 17th 05 02:59 PM


All times are GMT +1. The time now is 07:31 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"