+ Reply to Thread
Results 1 to 2 of 2

Run-time error '1004': Macro error, only when shared

  1. #1
    Registered User
    Join Date
    11-20-2010
    Location
    Delaware, USA
    MS-Off Ver
    Excel 2003
    Posts
    73

    Run-time error '1004': Macro error, only when shared

    Hey all,

    I'm having an issue with my workbook. I manage a shared database that my office uses in our everyday operations. I recently upgraded a macro that

    -Deletes conditional formatting for a range.
    -Formats the range with real formatting (based on cell values).
    -Copies and Pastes range into an e-mail.

    This macro runs fine, except for when the file is shared. Sharing is necessary for our daily operations so it's not something I can work around.

    When I try to execute the macro, while shared i receive

    Run-time error '1004': Application-defined or object-defined error.
    It will not let me debug this error because you cannot open VBA while shared. If I unshare the file, I do not receive the error.

    Does anyone know what could be causing this? I know this is a very vague question, but I'm stuck here and as far as I can see... everything should work fine.

    Attached is the workbook so you can see what the script is. The macro in question is "GSEmail".

    Many thanks in advance!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    07-17-2005
    Location
    Abergavenny, Wales, UK
    MS-Off Ver
    XL2003, XL2007, XL2010, XL2013, XL2016
    Posts
    608

    Re: Run-time error '1004': Macro error, only when shared

    Hi

    You cannot add or change Conditional Formats in a shared workbook.
    This is why your code is failing.

    Take a look in Excel Help for
    Features that are not supported in a shared workbook
    --
    Regards
    Roger Govier
    Microsoft Excel MVP

+ 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