![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 13
|
I need a macro for a button that skips one cell and selects a certain number of cells after it, something like "ActiveCell.Offset(0,2).Select" except I need to select more than one cell in the row. Any help is appreciated.
|
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
|
Quote:
this will select a range of 9 cells |
|
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Bogota, Colombia
Posts: 11,927
|
Ivan, I would go with
Activecell.Offset(0,2).Resize(1,9).Select Prettier, don't you think ? |
|
|
|
|
|
#4 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
|
Quote:
|
|
|
|
|
|
|
#5 |
|
Join Date: May 2002
Posts: 73
|
Well I would go with :-
ActiveCell(1, 3).Resize(, 9).Select Even prettier, don't you think? |
|
|
|
|
|
#6 |
|
Join Date: May 2002
Posts: 73
|
Oh dear!
No-one appears to think mine is prettier! I'm devastated. |
|
|
|
|
|
#7 |
|
New Member
Join Date: May 2002
Location: Southern California
Posts: 31
|
Dimrod,
Brevity is always more beautiful! I tried your solution and it works great for a current challenge I have. Thanks very much! -Bob in California |
|
|
|
|
|
#8 | |
|
Join Date: May 2002
Posts: 73
|
Quote:
What a wonderfully open and honest person you are !! |
|
|
|
|
|
|
#9 | ||
|
MrExcel MVP
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
|
Quote:
|
||
|
|
|
|
|
#10 | |||
|
Join Date: May 2002
Posts: 73
|
Quote:
As well? Oh !! Not instead of because it's prettier? |
|||
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|