• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

text from notepad into Excel

sach0888

New Member
I've to write a macro in VBA, wherein I would have some text in a notepad in my local drive (in rows and columns format) (same location of notepad every time). After starting the macro, it should pick up the text from that notepad and put in to the excel worksheet. (text in the notepad would be varying, might be two lines, two hundred or thousands or even more). I'm not able to figure out anything that could do this. Any help would be appreciated.
 
Sach0888


Firstly, Welcome to the Chandoo.org forums.


Why not record a macro

Open the notepad in Excel

That will open the import text wizard

Import as appropriate

Select All the data

Copy/Paste into the Excel file

Close the notepad import file

Process as appropriate

Stop recording


Then cleanup and add to your VBA
 
Back
Top