Thank you, that was perfect. I was using the xlEnd incorrectly and this solved the problem. Thank you!!
Main Topics
Browse All TopicsI had a quick question - I have a link to a dynamic text file in my excel sheet. The worksheet can have different numbers of rows depending on the day. I need a tiny piece of code to create a range of only the first column starting in A2 and going to the first blank.
Then, I need to copy this range and paste it onto another sheet at a target point. Since the length is variable, I was having trouble. Should I use the xlDown argument in the initial range?
I put in a demo sheet that shows what i'm trying to do. I was able to get it working with a fixed # of rows but the variable rows are throwing me off.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Actually, something is not quite working... On the test file the code works fine. However, when I change it and put it in the actual file, it pulls only the first two rows into the range (A1:A2) and nothing else. It shouldn't even be pulling in A1... Is this something caused by the data link to the text file?
here is what the code looks like in the production file: (I removed the data from column B and changed the destination.
Business Accounts
Answer for Membership
by: saurabh726Posted on 2009-10-22 at 09:04:04ID: 25635768
Use this code...
Saurabh...
Select allOpen in new window