+ Reply to Thread
Results 1 to 4 of 4

text insert layout error

  1. #1
    Forum Contributor
    Join Date
    03-24-2009
    Location
    Vietnam
    MS-Off Ver
    Excel 2010
    Posts
    382

    text insert layout error

    hello!

    when I am inserting data from my textfile, I would like to have it pasted in cell A2 and below. However, instead it is insert in A2, pushing all me columns to the right. how can i stop excel from doing that?

    Please Login or Register  to view this content.
    thanks,
    A2k

  2. #2
    Valued Forum Contributor Shijesh Kumar's Avatar
    Join Date
    05-26-2008
    Location
    Bangalore / India
    MS-Off Ver
    2000
    Posts
    717

    Re: text insert layout error

    Hello,

    Instead of creating a macro, why not use excel build in feature to save the query.

    Once the query is saved, in whatever desired format u saved it.... you just hav to open any excel file.. click on data -> Run query and excel will automatically fetch the data in desired format from the text file


    Else if u want to go ahead with your approach then use the the following
    Destination:=Range("A2")

    Instead of
    Destination:=Range("A2:N2")
    Last edited by Shijesh Kumar; 09-27-2009 at 04:20 AM.

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: text insert layout error

    Perhaps change

    Please Login or Register  to view this content.
    to

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    03-24-2009
    Location
    Vietnam
    MS-Off Ver
    Excel 2010
    Posts
    382

    Re: text insert layout error

    @ donkey
    that did it, thanks

    A2k

+ Reply to Thread

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