LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Navigating with keyboard after using offset on merged cells

Dear Gurus,

Excel 2000, 2002.

In a worksheet, highlight A1:C1, click on the merge cells button.
In the immediate pane of the VBE, enter
"Activecell.Offset(10,0).Select".
Go back to Excel. As expected, A11 is highlighted.

The unexpected? Press the right arrow key, and the cursor moves to
D1, not B11.

I've got a procedure attached to a shortcut key to speed up navigating
around a spreadsheet (jumping a specified number of rows/columns
according to the offset). But the cursor seems to remember the merged
cell (eg if you execute the offset command several times, you may end
up several screens down, but the moment you hit the left or right
arrow key you're back to where you started).

I few things to note - the workbooks I'm looking at aren't mine, so
the obvious solution of "don't use merged cells" isn't an option.
Secondly, it doesn't always appear to be consistent - in the example
above, up and down keys work as expected but left and right don't.
Also appears that how you enter the cell has a bearing - if the cursor
is in D1, then you press left arrow, then run the offset, it displays
the behaviour as above, but if you're in (say) B10 and hit
Ctrl-UpArrow, then perform the offset, the cursor moves as expected
when the arrow keys are used.

Has anyone come across this behaviour before? And (more importantly)
a way to get around it. Is this another one of those "features" that
they don't tell us about?

Kind regards,

Clayton.
 
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
Navigating between worksheets using the keyboard? [email protected] Excel Worksheet Functions 2 January 14th 09 05:46 PM
Offset every 27th row in a column that is 2 cells wide (merged cel KS Excel Worksheet Functions 4 March 19th 08 02:00 AM
Autofit Merged cell Code is changing the format of my merged cells JB Excel Discussion (Misc queries) 0 August 20th 07 02:12 PM
Offset function with merged cells MacroDaddy Excel Programming 1 January 8th 04 05:48 AM
how to offset when it is a merged cell. youngman Excel Programming 0 September 3rd 03 01:04 PM


All times are GMT +1. The time now is 08:23 AM.

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

About Us

"It's about Microsoft Excel"