Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi, I'm trying to assign my macro to an action or event (I think I'
using the correct jargon). When my user goes in to delete a worksheet, I want to call m 'DeleteSheet' subroutine. So I would have something like: Private Sub Workbook_Activate() If ActiveWorkSheet.Delete then Call DeleteSheet End If End Sub Will this macro always run in the background or can I specify it to ru only when user tries to delete? Thanks -- Message posted from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
assigning macro | Excel Discussion (Misc queries) | |||
Problem assigning macro to menu button | Excel Worksheet Functions | |||
Problem Assigning Macros | Excel Worksheet Functions | |||
Problem assigning macro to button? | Excel Programming | |||
Problem with assigning values to items in collection | Excel Programming |