+ Reply to Thread
Results 1 to 9 of 9

Worsheet_Change event to all open workbooks

  1. #1
    Forum Contributor Axmed.cm's Avatar
    Join Date
    02-05-2015
    Location
    Somalia
    MS-Off Ver
    2013
    Posts
    231

    Worsheet_Change event to all open workbooks

    Greetings!

    I have a worsheet with a Worksheet_Change event macro. Normally it only works when that worksheet makes change. Is there a way to also make it affect to any changes in all open workbooks?

    Thanks
    GUURE

  2. #2
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Worsheet_Change event to all open workbooks

    As far as I know you can only do that for the workbook that you have for all the worksheets if you put the code in the ThisWorkbook module .. but not for all open workbooks..
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  3. #3
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Worsheet_Change event to all open workbooks

    Quote Originally Posted by YasserKhalil View Post
    As far as I know you can only do that for the workbook that you have for all the worksheets if you put the code in the ThisWorkbook module .. but not for all open workbooks..
    I agree with YasserKhalil on this one
    Cheers!
    Deep Dave

  4. #4
    Forum Contributor Axmed.cm's Avatar
    Join Date
    02-05-2015
    Location
    Somalia
    MS-Off Ver
    2013
    Posts
    231

    Re: Worsheet_Change event to all open workbooks

    Dear Khaleel and Need4Excel,

    Thank you for your help.

    All what I wanted is to do a reminder in excel. I have a statup workbook that I wanted to biuld-in with workbook_change event.

    will be appreciated if any idea you can extend to me.

    Thanks

  5. #5
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: Worsheet_Change event to all open workbooks

    Quote Originally Posted by Axmed.cm View Post
    . . . I have a worsheet with a Worksheet_Change event macro. . . . Is there a way to also make it affect to any changes in all open workbooks?
    Application events, a relatively advanced topic, so not something for which to rely on code from faceless forum contributors.

    Start reading here.

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Worsheet_Change event to all open workbooks

    You can do it using an object that references the application with events

    code in thisworkbook module

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  7. #7
    Forum Contributor Axmed.cm's Avatar
    Join Date
    02-05-2015
    Location
    Somalia
    MS-Off Ver
    2013
    Posts
    231

    Re: Worsheet_Change event to all open workbooks

    Quote Originally Posted by Andy Pope View Post
    You can do it using an object that references the application with events

    code in thisworkbook module
    Dear Andy, Thank you. That's what i am really looking for.
    Thank you again for your support

    Cheers

  8. #8
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Worsheet_Change event to all open workbooks

    Glad I have learned something new. Thanks a lot Andy Pope for the solution.

  9. #9
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Worsheet_Change event to all open workbooks

    This is Awesome Andy.. Thanks for sharing..

+ 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. VBProjects of closed workbooks shown in open workbooks VBProject window
    By ImranBhatti in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-31-2018, 07:10 AM
  2. Replies: 1
    Last Post: 03-31-2016, 02:06 AM
  3. Worsheet_Change with 4 condition to send mail
    By Nicopof in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-28-2015, 07:25 PM
  4. [SOLVED] Open Event that lists files names and extracts data from those workbooks
    By klonbeck in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-25-2013, 02:21 PM
  5. [SOLVED] Open Multiple Workbooks, Record names, Copy paste to Active Workbook, Close the Workbooks
    By vba_madness in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-24-2013, 06:09 AM
  6. How to use the Workbooks open event?
    By shapper in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-17-2008, 12:44 PM
  7. [SOLVED] workbooks.open without triggering event
    By Vobiscum in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-24-2005, 03:05 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