PC Review


Reply
Thread Tools Rate Thread

Autofill Help Please

 
 
Chris
Guest
Posts: n/a
 
      28th May 2009
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 With Quote
 
 
 
 
Don Guillett
Guest
Posts: n/a
 
      28th May 2009
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
(E-Mail Removed)
"Chris" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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 With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook AutoFill Delete one autofill entry only katr52@yahoo.com Microsoft Outlook Discussion 4 5th Oct 2006 10:37 PM
Autofill: Need to autofill one week block, (5) weekday only into cells. dstock Microsoft Excel Misc 1 17th Jun 2005 08:21 PM
Q. Autofill question: Can I autofill alpha characters like I can numbers? George Microsoft Excel Programming 5 7th Aug 2004 10:33 AM
autofill? robz Microsoft Excel Discussion 5 4th Aug 2004 11:43 PM
AutoFill Dave Ramage Microsoft Excel Programming 1 29th Jul 2003 11:18 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:11 AM.