Error when select sheet for Excel file from Excel 2013 with visual basic

Dim AppXL As Object
Dim MyWorkBook as Object
Set AppXL = CreateObject("Excel.Application")
Set MyWorkBook = AppXL.Workbooks.Open("E:\MyFile.xls)
AppXL.Sheets("Sheet1").Select
The above code run with no problem when use in machines with Excel 2007 and Excel 2010.
But when run in machine with Excel 2013,  error with "Out of Range" occur. Kindly advise for any solution.
TS Lim

With your highlight on the AppXL.Workbooks.Open, I have solved the problem by re-position the statements.
Below are the 2 situation which works in for Outlook 2007, 2010 and 2013
Situation 1, work for Outlook 2007 and 2010 but d not 2013
With AppXL  
    Set WorkBookFrom = AppXL.Workbooks.Open("E:\MyFile.xls")
Set WorkBookTo = AppXL.Workbooks.Open("E:\MyFile2.xls")
  WorkBookFrom.Activate
    .Sheets("Sheet1").Select
    .Range("A1:IV65536").Select
    .Selection.Copy
        WorkBookTo.Activate
    .Sheets("Sheet1").Select
    .Selection.PasteSpecial Paste:=-4163, Operation:=-4142, SkipBlanks:=False, Transpose:=False
    .Range("A1").Select
      WorkBookTo.Save
End With
Situation 2, work for Outlook 2007 and 2010 and  2013
With AppXL  
    Set WorkBookFrom = AppXL.Workbooks.Open("E:\MyFiel.xls")
  WorkBookFrom.Activate
    .Sheets("Sheet1").Select
    .Range("A1:IV65536").Select
    .Selection.Copy
Set WorkBookTo = AppXL.Workbooks.Open("E:\MyFile2.xls")
        WorkBookTo.Activate
    .Sheets("Sheet1").Select
.Range("A1").Select
    .Selection.PasteSpecial Paste:=-4163, Operation:=-4142, SkipBlanks:=False, Transpose:=False
      WorkBookTo.Save
End With
Thank you for indirectly  help me to solve the problem.
TS Lim

Similar Messages

  • Since the 10.9 update -8058 error when copying a folder or file from a windows network server to any other location, why? and how to fix?

    I am experiencing a persistant error -8058 when attempting to copy a file or folder from any windows sharepoints to any other server location or to my desktop or locals. Am I the only one or are the others with the same issue since updating to 10.9?
    I have tried the finder plist removal suggestion- unsuccessful

    I am fairly certain that would not work for me as that is my usaul manner of mounting shares, smb:// or cif://. The enterprise servers do not automount so I commandK. Yesterday when I was troubleshooting 10.9 issues I had to have tech support unlock my account a dozen or more times. So I'm gonna give it a rest until I see an 10.9 update. In my case I don't think Mavericks is ready for enterprise/business use. I am 1 mac vs 350+ PCs.
    Thanks for you help!

  • 'File is not open' error when running DTP for flat file upload in BI

    Dear Sir,
    We are trying to upload master data from flat file for which we have
    created respective DTPs. When we are running the DTPs we are getting an
    error saying 'The file '&&filepath&&' is not open'. We also checked
    that the file is not open, but still we are getting this error. Could
    anyone please suggest what we have to do to solve this problem.
    Many Thanks
    Narendra

    Hi,
    I am currently facing the same error "Error in Source system".  "The file 'path' is not open".
    Could you please let me know how you resolved this issue.
    many thanks.
    Regards,
    Madhusudhan

  • Adadmin error when run check for missing files

    Hi All,
    When i run adamin for checking missing flie option it return the error
    Unable to verify files for iSupplier Portal.
    AD Administration error:
    The following file is missing:
    /m01/TEST/apps/apps_st/appl/pos/12.0.0/admin/driver/posfile.drv
    My EBS version is :R12.1.3
    when i checked files existed in $POS_TOP there are only three subdirectories available i.e. log mesg out
    when i checked in one of the older server in mean R12.1.1 all files existed in POS_TOP i.e. admin help html java log mds media mesg out patch sql xml
    Can i copy all the files from old server(12.1.1) to produciton(R12.1.3)
    Due to this error JAR files cannot be generated
    Thanks
    Alig

    Was this 12.1.3 instance upgraded from the same copy of 12.1.1 instance you have?
    Can i copy all the files from old server(12.1.1) to produciton(R12.1.3) They are different releases. However, you could try copying the files and see if this helps. Are you using this product?
    Due to this error JAR files cannot be generatedWhat is the error? Copy the missing files/directories for now and check then.
    Thanks,
    Hussein

  • Corrupted content error when trying to download .pdf file from one website.

    Unable to download .pdf file from a website, but IE8 provided the download without hesitation.
    Both v7 and v8 produced the same message:
    "Corrupted content error"
    The page you are trying to view cannot be shown because an error in the data transmission was detected.
    This may be a particular website problem, or it may be common to the particular industry segment and their protocols.
    I have followed the help leads and examined the profile for Firefox as used in this instance. Nothing untoward seemed to pop out as a causal factor.

    Reworked some of the javascript for our webserver and fixed the problem.

  • Error while selecting data for mara table from KOTG516 table

    Hello all,
    I am trying to select the data from mara table with respect to KOTG516 table . but i am not getting the value into t_mara table as t_kotg516-matnr is empty . but the t_kotg516 conatins the matnr value . here is the code . i am not getting where i went wrong . please help .
    TYPES: BEGIN OF Y_KOTG516,
            KAPPL TYPE KAPPL,
            KSCHL TYPE KSCHG,
            VKORG TYPE VKORG,
            VTWEG TYPE VTWEG,
            KUNAG TYPE KUNAG,
            MATNR TYPE MATNR,
            DATBI TYPE KODATBI,
          END OF Y_KOTG516.
    DATA: T_KOTG516 TYPE STANDARD TABLE OF Y_KOTG516,
          E_KOTG516 TYPE Y_KOTG516.
    TYPES: BEGIN OF Y_MARA,
            MATNR TYPE MATNR,
            MEINS TYPE MEINS,
          END OF Y_MARA.
    DATA: T_MARA TYPE STANDARD TABLE OF Y_MARA,
          E_MARA TYPE Y_MARA.
        SELECT KAPPL
               KSCHL
               VKORG
               VTWEG
               KUNAG
               MATNR
               DATBI
         FROM KOTG516
         INTO TABLE T_KOTG516
       WHERE VKORG IN S_VKOR
         AND VTWEG IN S_VTWE
         AND KUNAG IN S_KUNAG.
            IF NOT T_KOTG516[] IS NOT INITIAL
                    and SY-SUBRC EQ 0.
              SELECT MATNR
                     MEINS
                FROM MARA
                INTO TABLE T_MARA
               FOR ALL ENTRIES IN T_KOTG516
               WHERE MATNR EQ T_KOTG516-MATNR
                 AND MEINS EQ 'CS'
                  OR MEINS EQ 'IT'.
              ENDIF.
      FOR T_KOTG516 I HAVE VALUE but matnr is not getting selected from mara table as i cheked t_kotg516-mara is empty . i cant use with header line . please advise .
    Regards

    hi,
    SELECT KAPPL
                 KSCHL
                  VKORG
                 VTWEG
                KUNAG
               MATNR
                DATBI
               FROM KOTG516
              INTO TABLE T_KOTG516
              WHERE VKORG IN S_VKOR
               AND VTWEG IN S_VTWE
                 AND KUNAG IN S_KUNAG.
    if sy-subrc = 0 .
    SELECT MATNR
    MEINS
    FROM MARA
    INTO TABLE T_MARA
    FOR ALL ENTRIES IN T_KOTG516
    WHERE MATNR EQ T_KOTG516-MATNR
    AND MEINS EQ 'CS'
    OR MEINS EQ 'IT'.
    ENDIF.
    regards
    deepak .

  • Hyper-V Error when selecting Disk for a new VM

    Hello.
    I just got a new HP Server with the following entry level specs - for a small project:
    1 x HP DL380e Gen8
    1 x QC Processor
    8GB Memory
    2 x 1TB SATA HDD LFF in RAID1 running from a B120i Controller
    OS Running: Windows 2008 R2 Standard on the Host.
    I proceeded to install the Hyper-V Role and then created a new VM - which will also be running Windows 2008 R2 Standard (with specs as 2-core, 3GB memory, 2HDDs (OS + DATA)
    I started the VM and mounted the ISO - and started the install process till I had to select on which disk to install.  As stated above, I added 2 HDDs in the VM Setting - but I keep getting the message: "No
    device drivers were found. Make sure that the installation media contains the correct drivers, and then click OK"
    I've checked the BIOS settings of the server and virtualiazation is set as enabled, and also hdd virtualiazation.
    Any ideas on how to get around this? I tried going to HP Support but they told me it was a Windows issue and had to seek info from them.
    Thanks for any replies.

    Thanks Tim for replying.
    Actually the solution was quite simple - I reloaded the Windows 2008 ISO from another USB Port.
    And the installation completed successfully.  Don't know really what this means though! But at least I'm up and running.
    Cheers

  • HT1725 When I click on a Movie I get the following "You have already purchased this item but it has not been downloaded. To download it, select Check For Available Downloads from the Store menu." Then get err = 11111

    iTunes quit unexpectedly during the download of a movie.  When I click on that movie now I get the following message: "You have already purchased this item but it has not been downloaded. To download it, select Check For Available Downloads from the Store menu."
    I follow the instructions, but the download still doesn't resume - err = 11111
    Any advice?

    Yeah, I am going to blast my iPhone for the 4th time today and pray this goes away. I had 6 apps showing updates, the 6 badge icon shows on the App Store on my iPhone and, having run them all, the 6 apps have two copies each on my iPhone: one that is the old version of the app and will not run and the other is a faded version of the app with an empty progress bar on the icon. Click those and you get an error message about connecting to iTunes, etc. as described in the article I linked to above.
    It gets stranger than this. If I install a completely NEW app, the 6 that are stuck mid-update heal themselves and appear with the new version only, however now completely different apps (Hold Em for instance - which I did not update and didn't need an update) will not launch "app name Cannot Launch" message comes up.
    Agh!

  • "Entitlements are not valid" error message when trying to sync ipa file from iTunes to iPad

    Is anyone else getting this error message, "Entitlements are not valid",  when trying to sync .ipa file from iTunes to iPad?
    The issue I'm having is getting the ipa file that was built by the 'Adobe Flash Packager for Iphone' installed into my iPad.
    So, I have a swf file that works and was able to publish it into the Android Market.  I then compiled and build the same flash project with the Packager for Iphone into an .ipa file.  But when I try and install this .ipa file into my iPad to do my testings, i'm getting the error message. 
    I would like to test my ipa file in my iPad device before submitting it to the Apple Store.
    Any help would be appreciated. thank you.

    Developing for iphone can be amazingly complicated and frustrating.  (even before you start coding).  The process of having to create a Certificate, to approving the Certificate, to Assigning the deviceIDs to the certificate, to creating the AppIDs, to creating the provisioning profiles and then creating the .p12 file... is just too tedious. 
    I solved the problem of the "Entitlements are not valid".   The AppID i had set in the iPhone Developer Portal did not match that of the AppID i had set in the Adobe Flash CS5 -> Publish Settings.  (ie. com.yourdomainname.yourappname).  After I re-entered my AppID and compile, i was able to sync the .ipa file into my ipad. 
    I wish the error message had been a little more descriptive.  Could have saved me a whole day.
    I hope this helps others.  But my guess is, if you don't set the 40 character device ID correctly, or the email in the signingcertificate correctly, you'll get this same generic error message.

  • When I try to move files from my mac (v10.8.5) to my external harddrive I get the error message The operation can't be completed because an unexpected error occurred (error code -50).

    When I try to move files from my imac (v10.8.5) to my external harddrive I get the error message "The operation can’t be completed because an unexpected error occurred (error code -50)." How can I resolve this? Thank you.

    Some other things to look at.
    https://www.google.com/search?btnG=1&pws=0&q=The+operation+cannot+be+completed+b ecause+an+unexpected+error+occurred+(error+code+-50

  • When I try to import files from iMac HDD into the event, it fails. FCPX dosn't see this files for import. Files are *.m2ts and *.mpg. Should I buy plagin Quicktime component MPEG-2 to resolve a problem?

    When I try to import files from iMac HDD into the event, it fails. FCPX dosn't see this files for import. Files are *.m2ts and *.mpg. Should I buy plagin Quicktime component MPEG-2 to resolve a problem?

    no you should transcode those files into an format that os suitable for editing. Like proRez. Although you might need some Flip4Mac or perian or something to do the conversion.
    adam

  • Error code -51 when I attempt to transfer files from Mac to PC over network

    I just upgraded to Mavericks - I saw some threads that people are having the same problem. When I attempt to transfer files from my Windows 7 PC to my Mac laptop, it freezes, then I get an error code -51. No, it's not firewall, and no it's not sharing permissions in the PC. Help!!

    Same here as well. MacBook Pro 13" laptop with OSX 10.9. Can transfer small files (e.g. Mp3s, MS Word Docs, PDFs etc) on the network to a server running Windows 2008 R2 server eg MP3 files....but transfering larger files eg TV shows or films produces a failure after about 1.5MB and I get the following error message:
    "...The operation can’t be completed because an unexpected error occurred (error code -51)...."
    I previously had a MacBook Air laptop with OSX 10.8 and did not have this problem at all. Also currently have a Mac Mini with OX 10.6 and that machice continues to play just fine with the same server.
    So the issue must most likely be a problem specific to OSX 10.9...

  • File to JDBC :Error when executing statement for table/stored proc.

    Hi,
    I am getting following error when i am trying to insert data into z-table using JDBC recr adapter.
    Error while parsing or executing XML-SQL document: Error processing request in sax parser: Error when executing statement for table/stored proc. 'ZTEST' (structure 'STATEMENT'): java.sql.SQLException: <u>[Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Invalid object name '<b>ZTEST</b>'.</u>
    But the database table name 'ZTEST' exists in the system.
    XML structure:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_RECR xmlns:ns0="http://urn:srini/FileToJDBC">
       <STATEMENT>
          <TEST action="INSERT">
             <table>ZTEST</table>
             <access>
                <ROLLNO>123</ROLLNO>
                <FIRSTNAME>ABC</FIRSTNAME>
                <LASTNAME>XYZ</LASTNAME>
             </access>
          </TEST>
       </STATEMENT>
    </ns0:MT_RECR>
    Regards,
    Srinivas

    Hi,
    I have changed my MT str but still getting the same error.Is it possible to insert/ update a z-table using JDBC adapter.
    XML str:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_RECR xmlns:ns0="http://urn:srini/FileToJDBC">
       <STATEMENT>
          <ZTEST action="INSERT">
             <access>
                <ROLLNO>123</ROLLNO>
                <FIRSTNAME>abc</FIRSTNAME>
                <LASTNAME>XYZ</LASTNAME>
             </access>
          </ZTEST>
       </STATEMENT>
    </ns0:MT_RECR>
    Regards,
    Srinivas

  • Selection.PasteSpecial Paste:=-4163, Operation:=-4142, SkipBlanks:=False, Transpose:=False for Excel 2013

    I use the above statement to paste from one excel file to another in Access application.
    It works for machine installed with Excel 2007 and Excel 2010 but not for Excel 2013.
    The error message is "Error Number 9, Subscript out of range".
    Kindly advise. 
    Thank you.
    TS Lim

    Hi,
    For the error message:
    << Error Number 9, Subscript out of range
    About this error, it often implies that you are trying to refer to an object that doesn’t exist. Usually it caused by name which is not existing in the workbook. You can get more detailed information about this error in the following link.
    https://msdn.microsoft.com/en-us/library/aa264519(v=vs.60).aspx
    Have you checked the sheet name in you code, does it match the name in your workbook? If it still doesn’t help, can you share the sheet or post your code for us to reproduce this issue if it is convenient?
    Best Regards
    Lan
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Error while selecting entity for composantEO

    Hi,
    Briefly, I do an example of displaying a list of components (and already it works properly), but when I added a link to the removal of components I have encountered an error
    Voila details
    function code delete
    public void deleteComposantMethod(String action,String param)
    System.out.println("Now we are inside deleteComposantMethod");
    System.out.println("we search composant with numcomp : "+param);
    ComposantVOImpl inst=getComposantVO1();
    Row row[]=inst.getAllRowsInRange();
    for(int i=0;i<row.length;i++)
    ComposantVORowImpl rowi=(ComposantVORowImpl)row;
    System.out.println("checking the composant ===> "+rowi.getNumcomp());
    if(param.equals(rowi.getNumcomp().toString()))
    try{
    rowi.remove();
    getOADBTransaction().commit();
    System.out.println("Deleting succes");
    catch(Exception ex)
    System.out.println("error : \n"+ex.getMessage());
    return;
    in the browser page component disapru it seems that it works correctly, but nothing changes at data base and voila the error message I get from embedder OC4J server log
    Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = oracle.jbo.DMLException: JBO-26080: Error while selecting entity for ComposantEO
    thanks
    Please note: although no board code and smiley buttons are shown, they are still usable.
    thanks

    Hi,
    for those who have encountered the same problem as me, you should check that the table name sql query is of the form Name_Schema.Name_Table.
    For this right click on the entity in the workspace> edit entity> Database Objects> Schema Objects and add the schema name before table name( Name_Schema.Name_Table).
    thanks,

Maybe you are looking for

  • PL/SQL Queries in OC

    Is it possible to write normal SQL Queries into the Custom Code of OC? for ex - "select count(a.visdate) from tablename" or "select max(col) from table name"? is it also possible to write and set up CURSORS in OC like how we do normally in PLSQL of o

  • Problem with the purchasing iOS 3.1 software update for iPod touch

    I have an ipod touch (1st generation) and now while I'm looking for my update to iOS 3.1 for the most current, seeking the support of Apple. I found an article talking about buying an upgrade for the iPod touch iOS 3.1 Software (1st generation) then

  • APPCRASH error

    Hi, I'm getting APPCRASH error while opening RH 8 project files. Please advice how to correct it? Thanks Priya

  • Short dump while marking Sales order Line item for Reason for rejection

    Hi All, Need your help in the following regards. In system Client is creating a sales order with 100+ line items and for each line item a project gets created automatically at the background as it is a make to order senario. Now what is happening is

  • Adobe Acorobat 8 standard OEM - Reinstall

    I've had a computer crash, so I need to change motherboard and processor... The hard disk with all data stored is ok; on this machine I have installed Acrobat 8 Standard OEM, so I''d like to know how to do to reinstall the software once I'll have cha