Cannot use the code SaveCopyAs

Hi
I'm using Excel 2007
If i run the macro once I dont have any issue
If the file already exist, the code stop and delete the file instead of saving over it.
>For this example I change the Path. However  I get the same error what ever the folder name is.
I'm using the same codes on others files and users can save a copy without any issue. The codes doesn't work on this file only.
See the Codes below (I even removed others codes like message and error handling in cases and it still not working);
ActiveWorkbook.SaveCopyAs Filename:="C:\Users\mouimet\Documents\Data\2015\Working on\hvac test\test hvac.xlsm"
What can stop saving the file? And No the file is not open.
Thanks

Is the file an macro-enabled .xlsm to start with? You cannot change from .xlsx to .xlsm using SaveCopyAs - the file format must be the same as the implied fileformat of the new name.
Or try:
Application.DisplayAlerts = False
ActiveWorkbook.SaveCopyAs Filename:="C:\Users\mouimet\Documents\Data\2015\Working on\hvac test\test hvac.xlsm"
Application.DisplayAlerts = True

Similar Messages

  • I purchased an app for a friend in Canada (I am in France) and she cannot use the code I sent her... is there a solution ?

    I tried to offer an app for a friend who has an iPad and leaves in Canada (I am in France) but she cannot use the received code... is there a way around this ? can I get a refund ?
    Thanks in advance for your help.
    Adrien.

    You cannot purchase and gift apps from one Apple Store to another. Gift certificates bought from the French app store can only be redeemed in the French app store by someone with a French app store qualifying account. To qualify for an account in a particular country or regional store you must have a bank card for the same country as the store with a local billing adress in the same country as the store.
    You cannot buy a gift certificate in the French store and redeem it in the Canadian store.

  • Lock the plant so that other user cannot use the same plant.

    Hi Gurus!
    I ahve this small report which shows the pro-rate factor . In this report I need to block the plant or lock it(a soft) lock witha  message that some other user is using the plant so that other cannot use the same plant to post.Following is the report and if soemone can help me out would be very kind enough.I ahve added teh code where validation of plant is doen , so it must be somewhere here the locking should be done as per my thinking . Kindly suggest please.
    *&      Form  get_pro_factor
    *       get pro rate factor from the given
    *       combination of plant/sloc/mat#/period
    form get_pro_factor .
      select single zpr_factor zpr_disp_factor zpr_pipe_net zpr_pipe_gross
      from zprfactor
      into (zprfactor-zpr_factor, zprfactor-zpr_disp_factor,
            zprfactor-zpr_pipe_net, zprfactor-zpr_pipe_gross)
      where zpr_werks = p_werks    and
            zpr_lgort = p_lgort    and
            zpr_matnr = p_matnr    and
            zpr_mjahr = p_mjahr    and
            zpr_monat = p_monat.
      v_subrc = sy-subrc.
      if zprfactor-zpr_factor = 0.
        if c_wp = p_lgort+0(2).
          zprfactor-zpr_factor = 1. " Don C added this routine
        endif.
      endif.
      if zprfactor-zpr_disp_factor is initial.
        if not zprfactor-zpr_pipe_gross is initial.
          zprfactor-zpr_disp_factor = zprfactor-zpr_pipe_net / zprfactor-zpr_pipe_gross.
        endif.
        if zprfactor-zpr_disp_factor is initial.
          zprfactor-zpr_disp_factor = 1.
        endif.
      endif.
    endform.                    " get_pro_factor
    *&      Form  valid_plant
    *       validate whether plant entered in selection screen
    *       exists in database or not
    form valid_plant .
      if not ( p_werks is initial and
                 p_lgort is initial and
                 p_matnr is initial and
                 p_mjahr is initial and
                 p_monat is initial ).
        select single werks from t001w into t001w-werks
               where werks = p_werks.
        if sy-subrc ne 0.
          message e048(zmm) with p_werks.
        endif.
      endif.
    endform.                    " valid_plant
    *&      Form  FIND_MATKL
    form find_matkl .
      select single matkl into v_matkl from mara where matnr = p_matnr.
    endform.                    " FIND_MATKL
    *&      Form  UPDATE_ZPRFACTOR
    form update_zprfactor using p_flag.                         "DEVK903224
      call function 'ENQUEUE_E_TABLEE'
        exporting
          mode_rstable   = c_e
          tabname        = 'ZPRFACTOR'
        exceptions
          foreign_lock   = 1
          system_failure = 2
          others         = 3.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      else.
        select single * from zprfactor where zpr_werks = p_werks
                                       and   zpr_lgort = p_lgort
                                       and   zpr_matnr = p_matnr
                                       and   zpr_monat = p_monat
                                       and   zpr_mjahr = p_mjahr.
        if sy-subrc = 0.
          zprfactor-zpr_rate_flag = p_flag.                     "DEVK903224
          update zprfactor.
        endif.
      endif.
      call function 'DEQUEUE_E_TABLEE'
        exporting
          mode_rstable = c_e
          tabname      = 'ZPRFACTOR'.
    Thanks
    Aarav

    call function 'ENQUEUE_E_TABLEE'
        exporting
          mode_rstable   = c_e
          tabname        = 'ZPRFACTOR'
        exceptions
          foreign_lock   = 1
          system_failure = 2
          others         = 3.
    ENQUEUE_E_TABLEE   } E_TABLEE is the name of the lock object, it starts with character "E".

  • Nokia Connection Manager - Cannot use the connecti...

    Can someone PLEASE try and help me
    I have the following details:
    Phone: Nokia C5;
    Operating system: Microsoft Windows XP Service Pack 2
    Nokia PC Suite: Version 7.1.60.0
    I cannot use bluetooth & USB connection. When I try to select it in the Connection Manager I get an error message "  Cannot use the connection type. Check that all the needed hardware, software and drivers are available. (Code: OpenMedia) ". I have tried to reinstall nokia pc suite but no result.  The connection worked before. The PC Suite of my computer was upgraded and now the bluetooth & usb are not working any more.
    Please Help Me
    Attachments:
    Nokia_Connection_4679E9820AC32C34D11CBCDBA8237BA5_5.jpg ‏20 KB

    Could you please try this?
    I am not sure whether this will solve your problem but you could try this once.
    1. Disconnect your phone from PC if connected.
    2 .Open Control Panel and go to ‘Programs and Features’
    3. From the list of available programs, choose ‘Nokia Connectivity Cable Driver’
    4. Click on the ‘Change’ button on top toolbar.
    5. In the setup dialog box that pops up next, choose ‘Repair’ and select ok. Wait for setup to complete.
    6. Restart the computer if prompted.
    7. Now connect your phone to the PC. Driver installation should complete and PC/Ovi suite (hopefully) should detect your mobile properly now.
    Please THANK me by clicking on the ****WHITE STAR** ( Giving KUDOS) the big GREEN BOX to your LEFT .
    It will help me to serve you better !!!!!
    Thanking You

  • Nokia connection manager: cannot use the connectio...

    I'm using Nokia PC Suite 6.80.22 on a Fujitsu laptop (Windows Vista). This is the technical stack:
    Operating system:
    Microsoft Windows Vista
    Build 6000
    No service pack installed
    Language: English (United States)
    Language for non-Unicode programs: English (United States)
    Locale: English (United States)
    Input language: English (United States)
    Nokia PC Suite:
    Version 6.80.22
    Language: English
    Connectivity Cable Drivers:
    Version 6.80.5.1
    Bluetooth stacks:
    Microsoft Bluetooth stack
    Version 6.0.6000.16386
    Toshiba Bluetooth stack
    Version v5.00.07
    I have problems while trying to connect to my phone via Bluetooth. It shows the following error: Cannot use the connection type.
    In the PC Suite I go to Manage Conections and I see two bluetooth interfaces:
    - Bluetooth(Microsoft) THIS IS ENABLED
    - Bluetooth(Toshiba)
    When I try to disable the Microsoft driver and enable the Toshiba driver it show the error: CANOT USE THE CONNECTION TYPE (CODE: OPENMEDIA)
    Any ideas will be highly appretiated!

    I have exactly the same problem only my operating system is a bit different. I surfed through the net with no luck
    This is my system's details:
    Operating system:
    Microsoft Windows XP
    Build 2600
    Service Pack 2
    Language: English (United States)
    Language for non-Unicode programs: English (United States)
    Locale: English (United Kingdom)
    Input language: English (United Kingdom)
    Nokia PC Suite:
    Version 6.81.13.0
    Language: English
    Connectivity Cable Drivers:
    Version 6.81.1.2
    Microsoft Outlook:
    Version 10.0
    Build 2616
    Bluetooth stack:
    Microsoft Bluetooth stack
    Version 5.1.2600.2180
    Furthermore, my infrared connection and USB modem doesn't seem to be working. I have installed and re-installed the Nokia PC suite throughly. I dont know if my computer has something disabled or whether it's my phone (N95)
    Any suggestion would be grately appreciated,
    Do let me know if you found the solution to this prob.
    Cheers,
    Helpless

  • If my iPhone 3GS turns on but cannot use the touch screen, could the Processor be the problem?

    I recently dropped my iPhone 3GS but cannot use the touch screen. I took to a local repair shop and they tried replacing the digitizer and some other items but still could not get it to work. They advised that the Processor could be the problem. Is this true? If so, can the processor be replaced without losing data? Additionally, my phone has a lock code and when I try to connect it to my desktop to back up, it states that I need to enter my 4 digit pin first, which of course I cannot. Any workarounds here or am I SOL?

    Hook the phone to a computer running iTunes and backup to the computer. Copy pictures off the phone manually to the computer.

  • GB won't open- This is what I get... Path does not exist: /Library/Audio/Apple Loops Index  st: /Library/Audio/Apple Loops Index w/out this directory you cannot use the Loop Browser

    Path does not exist: /Library/Audio/Apple Loops Index  st: /Library/Audio/Apple Loops Index w/out this directory you cannot use the Loop Browser.  Then I get this message...
    Instrument Library Invalid
    GarageBand Ecpects a valid instrument foledr in /Libraty/Application Support/GarageBand
    Please choose a valid instrument Library folder or quit and re-install GB
    Any solutions?

    Is this a new installation of GarageBand or has it worked before on the same computer?
    Or have you transferrred your GarageBand from a different computer?
    The error message is saying, that your GarageBand installation is incomplete. There are essential foldrs missing in your system library. 
    Check, if indeed both folders are missing or if only the permissions are set incorrectly.
    Your system library (the folder "System" directly on your system drive) should have the following folders inside the folder "Audio", and they need to be readable by the system and by administrators.
    And in the folder /Library/Application Support there should be the Instrument Library.
    If these folders do not exist (or no longer exist), restore them from your backup-  If your GarageBand version is a new installation, the application may not hve been downloaded or installed completely, then reinstall GarageBand.
    What is your GarageBAnd version, and how did you install it originally?
    Regards
    Léonie

  • My back button and refresh button and my yahoo tool bar are dimmed a lot when I open up firefox. So as a result, I cannot use the back button nor my refresh button AND my yahoo toolbar disappears a lot. I have tried to get on your chat session but it is a

    <blockquote>Locked by Moderator as a duplicate/re-post.
    Please continue the discussion in this thread: [/forum/1/688252]
    Thanks - c</blockquote>
    == Issue
    ==
    I have another kind of problem with Firefox
    == Description
    ==
    My back button and refresh button and my yahoo tool bar are dimmed a lot when I open up firefox. So as a result, I cannot use the back button nor my refresh button AND my yahoo toolbar disappears a lot. I have tried to get on your chat session but it is always closed. I need one on one help. Please reply with resolution.
    == This happened
    ==
    Every time Firefox opened
    == two or three months ago
    ==
    == Firefox version
    ==
    3.6.3
    == Operating system
    ==
    Windows XP
    == User Agent
    ==
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 (BT-canvas) Firefox/3.6.3 GTB7.0 (.NET CLR 3.5.30729)
    == Plugins installed
    ==
    *-npdnu
    *npdnupdater2
    *Coupons, Inc. Coupon Printer DLL
    *Coupons, Inc. Coupon Printer Plugin
    *The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
    *6.0.12.448
    *RealPlayer(tm) LiveConnect-Enabled Plug-In
    *RealJukebox Netscape Plugin
    *Default Plug-in
    *Adobe PDF Plug-In For Firefox and Netscape "9.3.2"
    *BrowserPlus -- Improve your browser! -- http://browserplus.yahoo.com/
    *Shockwave Flash 10.0 r45
    *Yahoo Application State Plugin version 1.0.0.7
    *3.0.50106.0
    *My Web Search Plugin Stub for 32-bit Windows
    *Google Updater pluginhttp://pack.google.com/
    *Google Update
    *Next Generation Java Plug-in 1.6.0_20 for Mozilla browsers
    *Npdsplay dll

    * If the menu bar is hidden then press and hold the Alt key down, that should make the Menu bar appear (Firefox 3.6 on Windows) (see [[Menu bar is missing]]).
    * Make sure that you have the ''Navigation Toolbar'' and other toolbars visible: View > Toolbars .
    * If items are missing then see if you can find them in the View > Toolbars > Customize window.
    * If you see the item in the Customize window then drag it back from the Customize window to the Navigation toolbar.
    * If you do not see that item then click the Restore Default Set button in the View > Toolbars > Customize window.
    See also [[Back and forward or other toolbar buttons are missing]] and [[Navigation Toolbar items]]
    See http://kb.mozillazine.org/Toolbar_customization

  • Hi. After I have loaded a picture into Photoshop some of the menu tools are greyed out and I cannot use the keyboard short cut, for instance I cannot use Ctrl   T to enter free transform mode. Also the toolbar is so small I cannot see the icons without ge

    Hi. After loading a picture into Photoshop some of the menu tools are greyed out and I cannot use the keyboard short cuts, for instance I cannot use Ctrl + T for free transform, how do I resolve this problem. In addition the tool Icons are so small I have to get close to the screen to see them, is there anyway the Icons can be made bigger without reducing the resolution of the screen.
    Thanks
    Derek

    Are you working on a background layer? If so, Ctrl + T will not work. Press Alt and double-click your background layer to convert to a normal layer (or right-click BG layer and select Layer from Background) and try again.
    If you're working in Photoshop CC 2014 you can go to Preferences > Experimental Features and tick "Scale UI 200% for high-density displays" to make your buttons and icons larger.

  • HT204053 I cannot use the password to update apps on my second IPhone.  It only works on one of the phones. They both have the same Apple ID and password.

    I cannot use the password to update apps on my second IPhone.  It only works on one of the phones. They both have the same Apple ID and password.

    If it really does not work, change your password here https://appleid.apple.com (Manage account) and try to add the account again. I hope it helps.

  • TS1741 I have lost the original remote for my Apple TV. I went to install it at my fiancés house, and cannot use the remote app on my ipad or iPhone. Can I still control the Apple TV with the apps?

    I have lost the original remote for my Apple TV. I went to install it at my fiancés house, and cannot use the remote app on my ipad or iPhone. Can I still control the Apple TV with the apps?

    Welcome to the Apple Community.
    Your Apple TV may have become paired with another remote. Hold the remote close to and pointed at the Apple TV, hold down the menu and Rewind buttons together for 6 seconds or until you see a broken chain icon on screen.

  • When I plug in my iPod, a little window pops up on iTunes stating that I cannot use the iPod cannot be used because the apple mobile device service is not started. What do I do?

    When I plug in my iPod, a little window pops up on iTunes stating that I cannot use the iPod cannot be used because the apple mobile device service is not started. What do I do?

    See Here...
    AMDS for Mac  >  http://support.apple.com/kb/ht1747
    AMDS for Windows  >  http://support.apple.com/kb/TS1567

  • Why do i get the following message when i attempt to open my backup file for lightroom cc?  "Lightroom cannot use the catalog named "Lightroom Catalog" because it is not writable and cannot be opened".  This message just started coming  up after downloadi

    why do i get the following message when i attempt to open my backup file for lightroom cc?  "Lightroom cannot use the catalog named "Lightroom Catalog" because it is not writable and cannot be opened".  This message just started coming  up after downloading lightroom cc (previously using lightroom 5)...am i backing up properly or not???

    Open Pictures folder and move the files named lrcat-journal and lrcat.lock to Desktop.
    Make sure that , they are not inside Pictures folder any more and try to open backup from Lighrtroom and check..
    Any LRcat file with .lock extension , move it to Desktop.

  • Just installed a HP Color Laserjet CM2320nf MFP printer, at the same time I upgraded to Lion. It prints fine, but I cannot use the scan functions.  I downloaded the most recent driver! Any help would be appreciated.

    Just installed a HP Color Laserjet CM2320nf MFP printer, at the same time I upgraded to Lion. It prints fine, but I cannot use the scan functions.  I downloaded the most recent driver! Any help would be appreciated.

    HP says that the drivers for your all in one print/scanner are downloadable from apple. For the scanner to use preview. image capture or the scan icon from the print driver queue.  I don't know how old your HP is, but I know that the newer Os from apple don't support a lot of older printers. You might be able find a third party driver that could work.

  • I have just recently brought the blackberry curve 8310 and i am not able to access the internet, MSN etc. I rang my phone company(Crazy Johns) and they saif i cannot use the internet on this phone because they don't sell it anymore and i need a setting fo

    I have just recently brought the blackberry curve 8310 and i am not able to access the internet, MSN etc.
    I rang my phone company(Crazy Johns) and they saif i cannot use the internet on this phone because they don't sell it anymore and i need a setting for it to work.
    Can you please help me with this?
    Thanks Matthew.

    Hello,
    The services you listed in your post will require a data plan which is provisioned by your wireless provider. You may want to contact your wireless provider to see if you have the correct plan.
    Cheers,
    -FB
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.
    Click "Accept as a Solution" for posts that have solved your issue(s)!

Maybe you are looking for

  • Dunning as PDF - Problem with output

    Hi experts, I have a problem with the dunning as email. Everything works fine here with the dífferent threads (BTE 1040) - but the output is not in PDF-format. When I look at SOST, the attachment ist in *.EXT format... Does anybody know what's the pr

  • My iMac won't boot. I only get a white screen.  Won't open in safe mode or recovery mode.  Any suggestions?

    Hey, any help?  My 24" iMac won't boot.  I only get a white screen when turning on.  It won't open in safe or recovery mode.  Any suggestions?

  • XI and Credit Management in FSCM 6.0

    Hello, We have ERP2005 with FSCM and want to use the Credit Commitment interface ( http://help.sap.com/erp2005_ehp_01/helpdata/en/43/2a1c518e5f601fe10000000a422035/frameset.htm ) to pass FI-AR data to SAP Credit Management via XI. The sender is the F

  • Button appears a second before menu

    Has anyone experienced this problem...... I have three videos on a dvd, so three buttons on the menu page. Once first video plays and fades out, I have it set to go to menu page - 2nd button. That is all fine except that you see the button pop up ove

  • Install http sever from companion CD- question closed : )

    Hello all, I'm going to install http server from companion CD. In the first step: Specify File Locations Enter or select a name for installation and the full path where you want to install the product. By default, in my pc, Oracle use: Name: OraDb10g