Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 60
Default Autofill Help Please

Hello, could someone please help me with a autofill macro? I need a
macro to find the last cell in the worksheet named: Position and
Incumbent Data. Then select the last row from column A to column V and
autofill the data down two rows.

For example: if the last cell in column A is A502, then I need the macro
to select the data contained in cells A502 to V502 and autofill the data
into A503 to V503 and A504 to V504.

Any help is greatly appreciated.

Kind regards,

Chris.

*** Sent via Developersdex http://www.developersdex.com ***
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default Autofill Help Please

try this

Sub copylastrowtocolVdown()
lr = Cells(Rows.Count, "a").End(xlUp).Row
Cells(lr, 1).Resize(, 22).Copy Cells(lr, 1).Resize(3)
End Sub

Sub copylastrowdown()'Entire row
lr = Cells(Rows.Count, "a").End(xlUp).Row
Rows(lr).Copy Rows(lr).Resize(3)
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Chris" wrote in message
...
Hello, could someone please help me with a autofill macro? I need a
macro to find the last cell in the worksheet named: Position and
Incumbent Data. Then select the last row from column A to column V and
autofill the data down two rows.

For example: if the last cell in column A is A502, then I need the macro
to select the data contained in cells A502 to V502 and autofill the data
into A503 to V503 and A504 to V504.

Any help is greatly appreciated.

Kind regards,

Chris.

*** Sent via Developersdex
http://www.developersdex.com ***

Reply
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
Autofill Until uberathlete Excel Discussion (Misc queries) 1 November 10th 05 04:08 PM
Autofill until uberathlete Excel Discussion (Misc queries) 1 November 9th 05 06:01 PM
Autofill Dominique Feteau[_2_] Excel Programming 1 September 21st 05 07:48 AM
Autofill: Need to autofill one week block, (5) weekday only into cells. dstock Excel Discussion (Misc queries) 1 June 17th 05 08:21 PM
Q. Autofill question: Can I autofill alpha characters like I can numbers? George[_22_] Excel Programming 5 August 7th 04 10:33 AM


All times are GMT +1. The time now is 05:10 AM.

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

About Us

"It's about Microsoft Excel"