+ Reply to Thread
Results 1 to 4 of 4

importing text file into excel file using macro

  1. #1
    Registered User
    Join Date
    03-11-2013
    Location
    chennai
    MS-Off Ver
    Excel 2010
    Posts
    8

    importing text file into excel file using macro

    Hi ,

    I am working on a macro to import text files into excel .but when I am executing it, I am getting an error message "Invalid procedure call or argument" at

    With ActiveSheet.QueryTables.Add(Connection:= _
    "TEXT;" & FileName _
    , Destination:=Range("$A$1"))

    pls help...

    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    02-11-2013
    Location
    eugene, or
    MS-Off Ver
    Excel 2011
    Posts
    74

    Re: importing text file into excel file using macro

    Have you tried using the Macro recorder?

  3. #3
    Registered User
    Join Date
    03-11-2013
    Location
    chennai
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: importing text file into excel file using macro

    Thanks for your reply,

    I want to execute this with a button click..hence i didn't tried macro recoder ...

  4. #4
    Registered User
    Join Date
    03-11-2013
    Location
    chennai
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: importing text file into excel file using macro

    Hi,

    I got the solution for the above problem...
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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