+ Reply to Thread
Results 1 to 5 of 5

Loading the value of text file (notepad) to a textbox

  1. #1
    Registered User
    Join Date
    03-11-2014
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    17

    Loading the value of text file (notepad) to a textbox

    Hi Sir/Maam, is there a way to load the value of a text file (notepad) to a textbox? Is it possible? Refer to my screenshot. I already have the code on how to open a specific file directory and all I just want to learn is to how to load the value of a textfile to a textbox. Thank you
    TestFile.png

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Loading the value of text file (notepad) to a textbox

    try the following macro. Make sure you start it while being in the sheet that contains your textbox.
    Also, change the file path and name as per your file's name and location and change theTextBox 1 name if needed.
    Please Login or Register  to view this content.
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

  3. #3
    Registered User
    Join Date
    03-11-2014
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Loading the value of text file (notepad) to a textbox

    Sorry p24leclerc but im not familiar in macro, would you mind educating me? thank you very much

  4. #4
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Loading the value of text file (notepad) to a textbox

    Below, you'll find 2 files. One is the workbook with the macro to import a TXT file into a TextBox. The other one is a TXT file as an example. Open the Test.txt file for instructions.
    Hope this helps
    Regards
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    03-11-2014
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Loading the value of text file (notepad) to a textbox

    Thank you very much p24leclerc.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. how to copy selected notepad text and paste it in other notepad with macro
    By Guru232 in forum Excel Programming / VBA / Macros
    Replies: 29
    Last Post: 04-24-2013, 04:43 AM
  2. Trying to copy columns to a notepad text file
    By Gamerxx13 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 04-18-2013, 05:19 PM
  3. Replies: 1
    Last Post: 08-30-2009, 11:26 AM
  4. Down loading XL sheet data into the Notepad
    By ssamband in forum Excel General
    Replies: 7
    Last Post: 07-28-2005, 02:06 PM
  5. Print text file with notepad
    By side_ in forum Excel General
    Replies: 0
    Last Post: 02-04-2005, 02:01 PM

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