+ Reply to Thread
Results 1 to 3 of 3

current work book open

  1. #1
    Registered User
    Join Date
    01-11-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    31

    current work book open

    I am using the following VBA commands, however it is opening up a new work excel work book. I would like it to be added to a new sheet in my current workbook. Any help would be appreciated.
    ChDir "..path.."
    Workbooks.OpenText Filename:="...path"

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: current work book open

    Please Login or Register  to view this content.
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    01-11-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: current work book open

    This worked perfect on some, however I have been recently getting this error:

    "Excel cannot insert the sheets into the destination workbook, because it contains fewer rows and columns than the source workbook. To move or copy the data to the destination workbook, you can select the data, and then use the copy and paste commands to insert it into the sheets of another workbook".

    Is there anyway around this?

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    01-11-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: current work book open

    Saving the input file as a Excel 97-2003 file seems to do the trick.

+ 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