-
Excel VBA to import txt file AND automatically insert rows
I have a form that I need to populate with a text file. I need to be able to import this, but the form only has room for 10-15 rows of new data. There is info above and below that area I will be importing to. So if I have 20 rows in the text file, it will need to read the text file, count the rows, (20), then go to Cell A25, make sure there are 20 blank rows, then import the data.
Is this possible?
Techgirl7
Last edited by mdmackillop; 10-10-2017 at 12:54 PM.
Reason: Typo corrected
-
Is your data in one column or multiple?
MVP (Excel 2008-2010)
Post a workbook with sample data and layout if you want a quicker solution.
To help indent your macros try Smart Indent
Please remember to mark threads 'Solved'
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules