Results 1 to 3 of 3

Open File Input

Threaded View

naidu9295 Open File Input 06-10-2010, 06:58 AM
snb Re: Open File Input 06-10-2010, 08:02 AM
Leith Ross Re: Open File Input 06-10-2010, 03:19 PM
  1. #1
    Registered User
    Join Date
    06-10-2010
    Location
    SIngapore
    MS-Off Ver
    Excel 2003
    Posts
    7

    Open File Input

    Hi ,

    I am using this code to open a text file and read the input into a variable

    it is working fine with excel 2007 but not working with excel 2003

    Could someone please help
    Function GetText(tFile As Variant, j As Variant)
    Dim oText As String
    nSourceFile = FreeFile
    Open tFile For Input As #nSourceFile
    oText = Input$(LOF(1), 1)
    Close
    Last edited by Leith Ross; 06-10-2010 at 03:19 PM. Reason: Added Code Tags

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