![]() |
![]() |
|
|||||||
| 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: 8
|
I'm trying to get my macro to find a row and then select/copy a certain range of cells in that row. So far, I have the macro that will find the row:
Selection.Find(what:="JT67", after:=ActiveCell, LookIn:=xlValues, _ lookat:=xlPart, searchorder:=xlByColumns, searchdirection:=xlNext, _ MatchCase:=False, searchformat:=False).Activate Now I just need to select and copy the data in cells B to G of that row - anyone know the code for this? Thanks. |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Feb 2002
Location: Las Vegas Nevada USA
Posts: 240
|
Range("B67:G67").Copy
__________________
George Learn to listen. Opportunity sometimes knocks very softly. |
|
|
|
|
|
#3 |
|
New Member
Join Date: Apr 2002
Location: England
Posts: 44
|
Hi,
Try the following :- Range(Cells(ActiveCell.Row, 2), Cells(ActiveCell.Row, 7)).Copy Cheers, Alan |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|