+ Reply to Thread
Results 1 to 3 of 3

Code runs through xlsm source workbook but not through the add-in button?

  1. #1
    Forum Contributor
    Join Date
    06-20-2021
    Location
    UK
    MS-Off Ver
    2016
    Posts
    126

    Code runs through xlsm source workbook but not through the add-in button?

    Using same workbook and applying two different methods:

    • Using macro in the xlsm file - works OUTCOME: copies all table ranges and chart objects into separate PPT objects as expected
    • Using macro through add - in button - fails | OUTCOME: creates an empty PPT slide, and finishes the macro

    Please Login or Register  to view this content.
    Last edited by immigrated4urjob; 08-20-2021 at 07:19 AM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: Code runs through xlsm source workbook but not through the add-in button?

    Maybe the Addin should change to ActiveWorkbook in place of ThisWorkbook

  3. #3
    Forum Contributor
    Join Date
    06-20-2021
    Location
    UK
    MS-Off Ver
    2016
    Posts
    126

    Re: Code runs through xlsm source workbook but not through the add-in button?

    Quote Originally Posted by davesexcel View Post
    Maybe the Addin should change to ActiveWorkbook in place of ThisWorkbook
    Absolute legend mate. This will go in my diary of more silly errors.

+ 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] Macro to open source workbook and save as .xlsm format
    By Howardc1001 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-26-2019, 08:01 AM
  2. Trying to assign macro button that runs on a different sheet in the workbook
    By MrWhiskey in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-21-2017, 03:12 PM
  3. Code runs with F8 but not from button
    By BRISBANEBOB in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-05-2014, 02:09 AM
  4. [SOLVED] Copy/Save As xlsm workbook to new xlsm workbook is not copying the code with it
    By Grinchy in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-02-2013, 09:30 AM
  5. Ok button runs code 17 times w/o loop.... Why?
    By contaminated in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-28-2012, 05:19 AM
  6. [SOLVED] code behind the command button that runs another macro
    By Vogelmann in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-10-2012, 06:04 AM
  7. Excel - keep a command button from moving after code runs?
    By Dave Little in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-28-2005, 10:05 AM

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