+ Reply to Thread
Results 1 to 3 of 3

VBA Saving issue with quotes

Hybrid View

  1. #1
    Registered User
    Join Date
    10-10-2013
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2010
    Posts
    50

    VBA Saving issue with quotes

    I'm trying to save some data out to a text file:

    Here's my code:

    dim data as string
    data="data"
    Open strPath for Output as #1
    Write #1, data
    Close #1
    in the file writes, I get
    "data"

    (with quotes), I do not want the quotes, what am I doing wrong?

    TIA!

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: VBA Saving issue with quotes

    Change Write to Print.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    10-10-2013
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2010
    Posts
    50

    Re: VBA Saving issue with quotes

    Thanks!!! That was easy

+ 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] Double Quotes using Chr(34) and Extra Quotes when saving as text file
    By vamosj in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-26-2013, 12:26 PM
  2. Saving to a .csv file and only 1st row contains quotes
    By MOFLBoy in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-02-2009, 05:07 PM
  3. Saving MSN Stock Quotes
    By RCREUEL in forum Excel General
    Replies: 0
    Last Post: 11-25-2007, 10:28 PM
  4. Saving to a csv without the quotes
    By laredotornado@zipmail.com in forum Excel General
    Replies: 1
    Last Post: 04-17-2006, 05:40 PM
  5. Triple Quotes when saving to *.csv
    By D in forum Excel General
    Replies: 2
    Last Post: 12-04-2005, 02:10 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