+ Reply to Thread
Results 1 to 3 of 3

problem with the macro after moving to another workbook

  1. #1
    Registered User
    Join Date
    03-27-2018
    Location
    Poland
    MS-Off Ver
    2010
    Posts
    2

    problem with the macro after moving to another workbook

    Hello

    I have a problem with the macro after moving to another workbook

    in workbook TEST_2_1.xlsb start the button KOPIOWANIE and its works
    in workbook ____Terminal_.xlsb start the button KOPIOWANIE and its not working

    If you manage to fix it wet please check other KASOWANIE I PORZĄDKI

    please fix the error and explain where the problem is.

    Thanks a lot
    Best regards
    Attached Files Attached Files
    Last edited by mkset; 03-27-2018 at 06:27 AM.

  2. #2
    Forum Contributor
    Join Date
    02-09-2009
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    380

    Re: problem with the macro after moving to another workbook

    If it works fine in the other workbook then it's almost certain that the workbook/ worksheet is explicitly referenced (meaning it points exactly to the file e.g. "ThisWorkbook.xlsm" so when you run in ThisWorkbook.xlsm it's fine. However when you copy that code or rename the workbook/ worksheet it will have pieces of code that refer to ThisWorkbook.xlsm and it will fail at that point.

    Try hitting Ctrl & F (Find menu) and do a search for your worksheet name (the one where it did work). Replace it with the name of your new workbook. If you replace all references of these it should be fine.

  3. #3
    Registered User
    Join Date
    03-27-2018
    Location
    Poland
    MS-Off Ver
    2010
    Posts
    2

    Re: problem with the macro after moving to another workbook

    no this is not it

    run time error '13': type mismatch

+ 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. [SOLVED] VBA Moving Average Macro Problem
    By rmccain in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-02-2017, 10:29 PM
  2. [SOLVED] Macro moving records with termination dates to another workbook
    By jcaynes in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-12-2013, 10:56 AM
  3. Problem using a macro from one workbook for a similar purpose in another workbook
    By SMcuthbert in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-26-2013, 10:14 PM
  4. Problem using a macro from one workbook for a smilar purpose in another workbook
    By SMcuthbert in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-26-2013, 08:10 PM
  5. custom tool bar macro assignment problem when moving from excel 2003 to 2007
    By snsyg in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-15-2012, 03:17 AM
  6. Macro - Shortcut for moving between sheets in a workbook.
    By Steve-B in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-16-2009, 12:33 PM
  7. [SOLVED] moving a macro to a new workbook
    By KARomain in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-04-2006, 04:10 PM

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