![]() |
![]() |
|
|||||||
| 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
Location: England
Posts: 44
|
Rows(RowOffSet2 - 1).Select
FillRows = CStr(RowOffSet2 - 1) & ":" & CStr(RowOffSet2 + 2) Selection.AutoFill Destination:=Rows(FillRows), Type:=xlFillDefault Any thoughts would be appreciated. Thanks, Alan. |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Denver, Colorado USA
Posts: 4,014
|
Hi Alan,
I believe the following should accomplish the same thing more efficiently: With Rows(RowOffSet2-1) .AutoFill Destination:=Range(.Cells,Rows(RowOffSet2+2)), Type:=xlFillDefault End With
__________________
Keep Excelling. Damon VBAexpert Excel Consulting (My other life: http://damonostrander.com ) |
|
|
|
|
|
#3 |
|
New Member
Join Date: Apr 2002
Location: England
Posts: 44
|
yes, oh yes, much better. Thanks for that.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|