+ Reply to Thread
Results 1 to 4 of 4

SaveCopyAs macro

  1. #1
    Registered User
    Join Date
    03-17-2015
    Location
    South Carolina, USA
    MS-Off Ver
    2010
    Posts
    59

    SaveCopyAs macro

    Hello all, I assumed wrong what was causing the issue and had another thread changing how my values were copied to the sheet.

    My issue is that the code below is outputting a text file with many rows of blank lines after the last line of text. Is there a way to remove the extra lines when it is saved?

    Please Login or Register  to view this content.
    Thanks in advance!
    Last edited by silentcarl; 04-01-2015 at 08:10 AM.

  2. #2
    Registered User
    Join Date
    03-17-2015
    Location
    South Carolina, USA
    MS-Off Ver
    2010
    Posts
    59

    Re: Saving as tab delimited text file, getting many blank lines of text.

    I am so very close. Now my issue is saving the workbook. I want to use SaveCopyAs rather then SaveAs, but I get an error with the way I am using it.

    Please help!

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-17-2015
    Location
    South Carolina, USA
    MS-Off Ver
    2010
    Posts
    59

    Re: Saving as tab delimited text file, getting many blank lines of text.

    I am trying to:

    1. Copy a rng
    2. create new temporary sheet
    3. Paste data to new sheet
    4. save the active sheet (i assume a copy is the right way) as txt file
    5. leave my original workbook as the active sheet
    6. delete the new temporary sheet

    If I do a simple SaveAs, it works, but the whole workbook is titled the new name and then I close it in the code and my old workbook is not open any longer.

  4. #4
    Registered User
    Join Date
    03-17-2015
    Location
    South Carolina, USA
    MS-Off Ver
    2010
    Posts
    59

    Re: Saving as tab delimited text file, getting many blank lines of text.

    Please Login or Register  to view this content.
    This works.

+ 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. [SOLVED] Saving file as tab delimited text - macro
    By Klara86 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-21-2012, 02:02 AM
  2. Saving to a tab-delimited text file
    By BAT22_KM in forum Excel General
    Replies: 8
    Last Post: 08-24-2008, 11:43 AM
  3. Saving as a tab-delimited text file
    By wilderman22 in forum Excel General
    Replies: 2
    Last Post: 04-14-2008, 10:54 AM
  4. saving file as text(tab delimited)...
    By Sevgi in forum Excel General
    Replies: 1
    Last Post: 04-06-2005, 02:06 PM
  5. [SOLVED] saving file as text(tab delimited)...
    By Sevgi in forum Excel General
    Replies: 1
    Last Post: 04-06-2005, 02:06 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