Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Use excel to insert data at the bottom of existing data

I have several csv files that i need to import into excel, one below the
other, on one worksheet. The length of the csv files vary, so i can't put an
absolute value in my macro. Is there a way to automatically position my
insertion point below the last row of data? The macro works great so far as
the length of my csv files don't vary. But they do.

Any ideas?

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Use excel to insert data at the bottom of existing data

set rng = cells(rows.count,1).End(xlup)(2)

rng is a reference to the cell where you import the next file.

--
Regards,
Tom Ogilvy

"Mike Lines" <Mike wrote in message
...
I have several csv files that i need to import into excel, one below the
other, on one worksheet. The length of the csv files vary, so i can't put

an
absolute value in my macro. Is there a way to automatically position my
insertion point below the last row of data? The macro works great so far

as
the length of my csv files don't vary. But they do.

Any ideas?

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
Imported Data Not Replacing Existing Data - Excel 2007 Marilyn Excel Discussion (Misc queries) 0 April 27th 09 05:22 PM
Insert New Data in Order on an Existing Chart CAlloway Excel Discussion (Misc queries) 5 August 8th 07 03:58 PM
MULTIPLE DATA - How to insert new data into existing data.... Rodorodo Excel Discussion (Misc queries) 0 December 15th 06 11:50 PM
moving data in excel without deleting existing data jigna Excel Discussion (Misc queries) 1 January 30th 05 11:35 AM
how to paste data from top to bottom to bottom to top Dave Peterson Excel Discussion (Misc queries) 0 January 25th 05 12:12 AM


All times are GMT +1. The time now is 09:37 PM.

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"