Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default find last row in one column and copy + paste data to same row in a

I'm attempting to do the following in an excel macro:
Step 1: - find last row containing data in column X
Step 2: - copy the formula from cell Y1 through every cell down to Y* where
* represents the row number found in step 1

Can anybody help? Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default find last row in one column and copy + paste data to same row in a

Sub Auto_Fill()
Dim Lrow As Long
With ActiveSheet
Lrow = Range("X" & Rows.Count).End(xlUp).Row
Range("Y1:Y" & Lrow).FillDown
End With
End Sub


Gord Dibben MS Excel MVP

On Tue, 31 Jul 2007 09:08:00 -0700, Eric_G
wrote:

I'm attempting to do the following in an excel macro:
Step 1: - find last row containing data in column X
Step 2: - copy the formula from cell Y1 through every cell down to Y* where
* represents the row number found in step 1

Can anybody help? Thanks.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default find last row in one column and copy + paste data to same row

That did it -- many thanks.

"Gord Dibben" wrote:

Sub Auto_Fill()
Dim Lrow As Long
With ActiveSheet
Lrow = Range("X" & Rows.Count).End(xlUp).Row
Range("Y1:Y" & Lrow).FillDown
End With
End Sub


Gord Dibben MS Excel MVP

On Tue, 31 Jul 2007 09:08:00 -0700, Eric_G
wrote:

I'm attempting to do the following in an excel macro:
Step 1: - find last row containing data in column X
Step 2: - copy the formula from cell Y1 through every cell down to Y* where
* represents the row number found in step 1

Can anybody help? Thanks.



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
Copy a column and paste to another tab to save the data for each m liem Excel Discussion (Misc queries) 3 January 17th 10 03:14 AM
copy data and formulas from a column and paste into a row john.laffe[_2_] Excel Worksheet Functions 1 December 12th 07 02:59 PM
Find matching date in another worksheet, copy and paste data Shoney Excel Discussion (Misc queries) 1 November 8th 07 11:45 PM
Find last column, move formulas over, copy/paste data Mike R. Excel Worksheet Functions 0 September 19th 07 06:40 AM
copy & paste the column found by Selection.Find Mark[_3_] Excel Programming 2 July 31st 07 06:46 AM


All times are GMT +1. The time now is 06:51 AM.

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

About Us

"It's about Microsoft Excel"