+ Reply to Thread
Results 1 to 4 of 4

VBA code to export data to txt file

  1. #1
    Registered User
    Join Date
    01-22-2014
    Location
    Norge
    MS-Off Ver
    Office 365
    Posts
    55

    VBA code to export data to txt file

    Hi,

    I have the following code that gives me an error when I try to run it:

    Please Login or Register  to view this content.
    Anyone here who can help me to write this code so that it will work properly? I have data in columns H1:K1 and downwards that I would like to have stored as a txt file as you probably see from the code.
    Last edited by Absalon; 11-21-2014 at 07:55 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,053

    Re: VBA programming issue

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Never use Merged Cells in Excel

  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: VBA code to export data to txt file

    Have a read here: http://excel.solutions/2014/04/using...-to-text-file/
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  4. #4
    Registered User
    Join Date
    01-22-2014
    Location
    Norge
    MS-Off Ver
    Office 365
    Posts
    55

    Re: VBA code to export data to txt file

    Hi Olly,

    Sorry for the late reply, it has been extremely hectic at work lately.

    I am afraid that I am such a newbie in this so that I do not understand how to modify the code you sent me the link to.

    If I post the excel file, will you be able to assist me in modifying the code so it will satisfy my needs?

    It is the macro named "Step 4 - MEC to txt" that I am struggling with, for the range H1:K1.
    Attached Files Attached Files
    Last edited by Absalon; 11-28-2014 at 04:26 AM. Reason: Adding file.

+ 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. Issue with X axis values NOT graphing on Scatter graph and issue with Labels
    By lmausolf in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-17-2012, 07:20 AM
  2. [SOLVED] Issue - Attachment issue - by Simon Lloyd
    By Vaibhav in forum Suggestions for Improvement
    Replies: 16
    Last Post: 03-16-2012, 06:56 PM
  3. Issue with programming.
    By alejojauregui in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-04-2008, 01:23 AM
  4. Format/programming issue
    By thetallguy0 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-26-2008, 09:02 AM
  5. Replies: 3
    Last Post: 07-20-2007, 01:09 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