+ Reply to Thread
Results 1 to 4 of 4

Use Code written in xlsm file to open .xls file and copy-paste data from xls to xlsm file

  1. #1
    Registered User
    Join Date
    05-20-2013
    Location
    Cyprus
    MS-Off Ver
    Excel 2007
    Posts
    6

    Use Code written in xlsm file to open .xls file and copy-paste data from xls to xlsm file

    Hello guys, i just have a simple code in .xml file that opens a .xls files, selects a specific range, copies it and pastes it as values in the .xml file
    The code opens the .xls file but then i recieve a Microsoft "Visual Basic 400" error.

    Here is the code

    Please Login or Register  to view this content.
    any suggestions ?
    Last edited by kgiorgosss; 05-21-2013 at 05:24 AM.

  2. #2
    Registered User
    Join Date
    05-20-2013
    Location
    Cyprus
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Use Code written in xlsm file to open .xls file and copy-paste data from xls to xlsm f

    anyone any ideas ?

  3. #3
    Registered User
    Join Date
    05-15-2013
    Location
    Wisconsin, USA
    MS-Off Ver
    Excel 2010
    Posts
    42

    Re: Use Code written in xlsm file to open .xls file and copy-paste data from xls to xlsm f

    in cell XDX2 is the location of file listed aswell? "C:\Users\You\My Documents\file.xls"

  4. #4
    Registered User
    Join Date
    05-20-2013
    Location
    Cyprus
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Use Code written in xlsm file to open .xls file and copy-paste data from xls to xlsm f

    yes in cell XDX2 is the location of the file listed (the .xls file that has to open)

    the code opens the file but it stops (no cells selected in the openned file)
    and "Visual Basic 400" error appears on screen

+ 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