Excel User Group
Microsoft Excel blogs, forums, files. Read, ask questions, provide answers.

Browse Forum Posts by Tags

Showing related tags and posts for the Forums application. See all tags in the site
  • Re: Add event to new worksheet using VBA

    Hi Anonymous! This is how I would add a new worksheet and attach the "Calulate" event handler (the example shows a message box each time the calculate event is triggered): Private Sub NewSheet_Click() Dim oXl As Application: Set oXl = Application oXl.EnableEvents = False oXl.DisplayAlerts ...
    Posted to VBA (Forum) by Pedro80 on Wed, Jan 9 2008
  • Re: Add event to new worksheet using VBA

    Could you not use a hidden worksheet, hidden with the xlSheetVeryHidden attribute, so your users cannot see it in the UI and add this sheet, with the calculate event code already in it, maybe by menu or button. It would be far simpler than trying to write code into the worksheet object. If that is at...
    Posted to VBA (Forum) by Nick Hodge on Tue, Jan 8 2008
Page 1 of 1 (2 items)
Copyright Excel User Group and the relevant contributors, 2008. All Trade Marks acknowledged. This site is a peer-to-peer site and NOT affiliated in any way to Microsoft Corp. All rights reserved.