![]() |
![]() |
|
|||||||
| 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 |
|
Board Regular
Join Date: Feb 2002
Posts: 133
|
I have a macro which makes takes excel to an unspecified that it works out but then I wnat it to go 14 columns to the right on the same row then selct the next 3 cell to the right ie goto O14 (active cell) then select O14 through P145. Any ideas ?
|
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: Boston, MA
Posts: 105
|
"I have a macro which makes takes excel to an unspecified that it works out but then I wnat it to go 14 columns to the right on the same row then selct the next 3 cell to the right ie goto O14 (active cell) then select O14 through P145. Any ideas ?"
Not sure what you want, but give this a go: FirstOne = ActiveCell.Offset(0,14).Address LastOne = ActiveCell.Offset(0,16).Address Range(FirstOne & ":" & LastOne).Select |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Posts: 133
|
Just what the doctor ordered.
Many thanks. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|