+ Reply to Thread
Results 1 to 6 of 6

Activate a macro from another sheet

  1. #1
    Registered User
    Join Date
    07-31-2013
    Location
    FRANCE
    MS-Off Ver
    Excel 2003
    Posts
    27

    Activate a macro from another sheet

    Hello,

    I have the following macro on feui2
    I want to activate the macro cete sheet1

    I added Sheets ("sheet1"). Select

    but it does not work.

    do you have an idea

    Thank you for your help

    Please Login or Register  to view this content.
    Last edited by gibtoul; 08-21-2013 at 02:10 AM.

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Activate a macro from another sheet

    attach please a sample file
    If solved remember to mark Thread as solved

  3. #3
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Activate a macro from another sheet

    Hi, gibtoul,

    we would like to help but:

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    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, it also maintains VBA formatting.

    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

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  4. #4
    Registered User
    Join Date
    07-31-2013
    Location
    FRANCE
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: Activate a macro from another sheet

    Hello,

    I attach the file.
    I on Sheet2, the button to have an effect on the sheet1.

    Thank you for your help

    gibtoul
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Activate a macro from another sheet

    Insert a module and cut your code from Sheet1 and paste in module, then insert the line
    Please Login or Register  to view this content.
    although you have the button in sheet 2 the code must be in a module, then assign this code to desired button.
    Last edited by patel45; 08-21-2013 at 03:36 AM.

  6. #6
    Registered User
    Join Date
    07-31-2013
    Location
    FRANCE
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: Activate a macro from another sheet

    Thank you patel45

+ 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: 1
    Last Post: 05-29-2013, 01:20 PM
  2. Macro to activate a filter on another sheet
    By The_jackal in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-30-2008, 10:52 AM
  3. how would activate the previous sheet in macro
    By Vicky in forum Excel General
    Replies: 1
    Last Post: 05-27-2006, 04:25 AM
  4. How do make a macro activate the next sheet?
    By pauloreiss in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-04-2006, 09:10 AM
  5. Return to Current Sheet in On (sheet activate) event macro
    By Paul Moles in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-27-2005, 11:06 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