+ Reply to Thread
Results 1 to 5 of 5

Assistance with running 2 macros on 1 sheet. Code included! 2 buttons on sheet to link.

  1. #1
    Registered User
    Join Date
    08-02-2020
    Location
    USA
    MS-Off Ver
    10
    Posts
    24

    Assistance with running 2 macros on 1 sheet. Code included! 2 buttons on sheet to link.

    How do I link 2 Macros to 1 workbook page? I am getting an error about not being able to run 2 instances in the same workbook I believe it is something close to that.

    I attached my worksheet and here is what I would like:

    There are 2 buttons I made one for clear range of cells and one for fill blank cells with 0.

    Here are the codes I am using:

    Please Login or Register  to view this content.
    and

    Please Login or Register  to view this content.
    In addition...I am getting an error when opening the workbook saying links need to be updated.

    Thank you for any assistance!
    Attached Files Attached Files
    Last edited by superCWdad; 12-31-2020 at 10:26 PM.

  2. #2
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: Assistance with running 2 macros on 1 sheet. Code included! 2 buttons on sheet to link

    well I got it too. and more than likely that's because you have moved the workbook to a location that is NOT what you have in the macro pointer location you specified when you created the macro. it currently is:

    'C:\Users\Chris\Desktop\Family Organization\W Family Groceries test.xlsx'!Clearcells

    when you create a macro with the dialog, (right clicking on the button, etc, etc.... and pushing ""assign macro""), you have many options. (this book only, all books, etc, etc....). I'm obviously getting the error because I do not have dir architecture like yours.

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,522

    Re: Assistance with running 2 macros on 1 sheet. Code included! 2 buttons on sheet to link

    Quote Originally Posted by superCWdad View Post
    There are 2 buttons I made one for clear range of cells and one for fill blank cells with 0.
    You only have 1 button named "Clear Sheet" on "Data" sheet.
    If you have 2 buttons then assign following 2 macros respectively.
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    08-02-2020
    Location
    USA
    MS-Off Ver
    10
    Posts
    24

    Re: Assistance with running 2 macros on 1 sheet. Code included! 2 buttons on sheet to link

    Thank you for the responses, I have been swamped and will try out the solutions tomorrow and post the results. Thank you!

  5. #5
    Registered User
    Join Date
    08-02-2020
    Location
    USA
    MS-Off Ver
    10
    Posts
    24

    Re: Assistance with running 2 macros on 1 sheet. Code included! 2 buttons on sheet to link

    I decided to only use the Clear Content macro thank you for the replies and assistance!

+ 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: 04-22-2019, 08:10 AM
  2. Loop web data into new column on same sheet (Code included)
    By S Thibault in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-01-2016, 09:16 PM
  3. Loop web data into new column on same sheet (Code included)
    By S Thibault in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-31-2016, 10:46 PM
  4. [SOLVED] Assistance with Macros on Stock Sheet
    By STUARTXL in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-19-2016, 07:16 AM
  5. [SOLVED] save a sheet with code on workbook_open included
    By bulina2k in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-11-2014, 04:17 PM
  6. making buttons/macros universal for every sheet
    By nilsanp in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-31-2011, 07:28 AM
  7. Buttons to link to a hidden sheet
    By tillytee1 in forum Excel General
    Replies: 1
    Last Post: 09-30-2005, 07:29 AM

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