Results 1 to 14 of 14

Import a text file via macro, then select and import certain data.

Threaded View

  1. #1
    Registered User
    Join Date
    05-27-2022
    Location
    London
    MS-Off Ver
    Version 2010
    Posts
    10

    Import a text file via macro, then select and import certain data.

    Hi all,

    Macro noob here, would love some help.

    I have a simple Excel table where I would like to import a .txt file via the button on the spreadsheet and auto populate the cells 'calibration flashed'.

    So UNIT 1 would populate cells C8 and C9 with the info contained in the UNIT 1 section of the .txt file and so on.

    The reason this is difficult is there is a set .txt format, so some bits of info will need to be ignored in the txt file.

    Documents are attached as is a screen shot of the sheet and the text file.

    EXAMPLE.PNG

    This is a simple version of what I'd like in the end, but this will help me with some starter macros.

    Thanks for any help!
    James
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro to import data from text file into seperate columns
    By tjstreetta in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-11-2018, 07:32 AM
  2. Import data from text, by Macro, With a text box for the file path??
    By locopete999 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-27-2016, 06:30 AM
  3. Macro - Open File Explorer, Select File, Import certain information from file
    By Drayde in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-25-2015, 08:58 AM
  4. Replies: 7
    Last Post: 10-30-2012, 07:14 AM
  5. [SOLVED] Import text file from VBA code; import all numbers as text
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-19-2012, 05:19 PM
  6. File import - select file and import sheet(1) from closed workbook
    By Armitage2k in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-22-2011, 03:15 AM
  7. macro to import text file
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-24-2008, 09:08 AM

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