+ Reply to Thread
Results 1 to 7 of 7

PROBLEM WITH "modpaste.copy"

  1. #1
    Registered User
    Join Date
    05-21-2024
    Location
    Peru
    MS-Off Ver
    2403
    Posts
    3

    PROBLEM WITH "modpaste.copy"

    Hi everyone!

    I am running into an issue with a file in Excel that when I try to run a macro. I get the following error:

    "Run-time error '1004': Cannot run the macro 'modpaste.copy'. The macro may not be available in this workbook or all macros may be disabled."

    A couple things to note:
    - I just joined this company and I am using OneDrive to access and open the file
    - Other users do not have a problem running the macro in the file
    - I definitely have macros enabled
    - The person who created the code is no longer working.

    I don't see a macro named modpaste.copy anywhere in the different modules in VBA. I think this is some kind of access issue because no one else had the same issue.

    Please help!

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,343

    Re: PROBLEM WITH "modpaste.copy"

    How are you running the macro? Is there a module named modpaste in the workbook?
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Registered User
    Join Date
    05-21-2024
    Location
    Peru
    MS-Off Ver
    2403
    Posts
    3

    Re: PROBLEM WITH "modpaste.copy"

    I only have one module, but it's weird, because with my colleagues we have apparently everything similar. I thought it might be an add-on, but we checked them and they are not, they are the same.

    Psdt. Thank you for your quick response.

  4. #4
    Registered User
    Join Date
    05-21-2024
    Location
    Peru
    MS-Off Ver
    2403
    Posts
    3

    Re: PROBLEM WITH "modpaste.copy"

    The code is as follows, maybe it will help a little.

    Please Login or Register  to view this content.
    Last edited by 6StringJazzer; 05-21-2024 at 03:04 PM.

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,925

    Re: PROBLEM WITH "modpaste.copy"

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however we recommend that you include code tags around your code.

    Please take a moment to add the tags. Posting code between [code]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/code] tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Guideline #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here.

    I have added the code tags because you are new.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,925

    Re: PROBLEM WITH "modpaste.copy"

    It appears that there is a module called modPaste with a Sub called copy, and you don't have it.

    If it does not work for you, but it does for your colleagues, then is something different; you just haven't found it yet. Either they have the module that you are missing, or they have an add-in (even though you said they are the same).

  7. #7
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,343

    Re: PROBLEM WITH "modpaste.copy"

    The fact that the code uses Application.Run rather than just calling the code directly may suggest that the module is in a different workbook - either an add-in or a personal macro workbook or other startup workbook.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 5
    Last Post: 02-05-2019, 12:03 AM
  2. [SOLVED] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  3. Replies: 1
    Last Post: 01-22-2016, 09:21 AM
  4. If "value" then copy from "cellA" to "cellB" drag down issues
    By mrmeeks in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-18-2014, 12:34 PM
  5. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  6. How can i copy value from "HTMLText"(EMBED("Forms.HTML:Text","")),using Macro
    By andrewyang in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-18-2010, 12:47 AM
  7. Problem using "Cells" in "Range" "400" error
    By johnnywinter in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-14-2009, 05:46 PM

Tags for this Thread

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