+ Reply to Thread
Results 1 to 5 of 5

Notepad to Excel using VBS

  1. #1
    Registered User
    Join Date
    04-30-2013
    Location
    WV
    MS-Off Ver
    Excel 2003
    Posts
    2

    Notepad to Excel using VBS

    I'm trying to populate multiple Excel fields with data from multiple notepad files. The code below does not put the data from the notepad file "test.txt" into cell B3.
    Is what I'm trying to do possible?

    Please Login or Register  to view this content.
    Last edited by arlu1201; 04-30-2013 at 03:22 PM. Reason: Use code tags in future.

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Notepad to Excel using VBS

    ther'is only one string in the text file ?
    If solved remember to mark Thread as solved

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: Notepad to Excel using VBS

    You need to read the contents of the text file into a variable and then load the cell with the contents of the variable.
    Currently you are populating the cell with the folder and file name.
    Cheers
    Andy
    www.andypope.info

  4. #4
    Registered User
    Join Date
    04-30-2013
    Location
    WV
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Notepad to Excel using VBS

    Patel45....this is only a test before I spend a lot of time on the actual code.

    Andy Pope....I'm wet behind the ears when it comes to vbs...what would this variable look like? The contents of the test is: H50976.....324

    Thank for both of your replies!

  5. #5
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: Notepad to Excel using VBS

    Something like this

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1