LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Copy a formula into a blank column only to the last data row

I have a macro that loads a variable length data spreadsheet (n rows) into
an instance of a template. I then want to copy a formula into a blank
column of that sheet, but limit the copy only to the number of rows that
contain data.

So I have some code that selects say E1, copies its formula, goes to E3
(under the headings). Then I need to have it select from there to the last
active row and do my paste.

However, because the column is empty, it always seems to want to select all
the way to row 65536 or so. That disrupts many other things and is not at
all desirable. Can anyone tell me how to specify the row number at the end
of the imported data, so that I can limit the extent of my paste operation?
Thanks,
Kebbon


 
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 Sum formula to different row but use same column data jefe96 Excel Worksheet Functions 3 March 23rd 07 02:31 PM
HOW DO I COPY THE LAST NON BLANK CELL IN A COLUMN Needles Excel Worksheet Functions 2 October 16th 05 06:39 PM
Copy rows of data to another worksheet where ReturnDate is blank Helen McClaine Excel Discussion (Misc queries) 2 March 28th 05 11:33 PM
Howdo U copy a formula down a column, that uses data in another w. Need Help pasting a formula Excel Worksheet Functions 1 February 25th 05 06:04 PM
Howdo U copy a formula down a column, that uses data in another w. brantty Excel Worksheet Functions 0 February 25th 05 10:11 AM


All times are GMT +1. The time now is 11:13 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"