Results 1 to 8 of 8

writing textfile to excel

Threaded View

  1. #1
    Forum Contributor
    Join Date
    03-09-2010
    Location
    Oslo, Norway
    MS-Off Ver
    Excel 2003
    Posts
    173

    writing textfile to excel

    Hi

    I have a problem with my macro, sometimes it splits a number which is delimited with "." into two cells. For instance, 0.6888, becomes 0 in column A and 6888 in column B. Anyone who knows how to avvoid this problem? My excel uses comma normally as delimiting into decimals.

        Set objData = GetObject("New:{1C3B4210-F441-11CE-B9EA-00AA006B1A69}")
        Set tsr = CreateObject("Scripting.FileSystemObject").OpenTextFile(fPath & fNEW, 1)
        strText = tsr.ReadAll
        tsr.Close
        objData.SetText strText
        objData.PutInClipboard
    Last edited by Hjahren; 10-29-2010 at 06:56 AM.

Thread Information

Users Browsing this Thread

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

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