Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
How can i trap the rename event of an excel sheet? Is it possible to get the renamed sheet name as soon as it'd changed? thanks and rgds |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
There is no "rename event" in XL. If you have the Cell("filename")
function on the sheet, renaming the sheet will fire the Calculate event, where you can check the name against a static or global variable. In article , "bmm" <newsgroup.com wrote: Hello, How can i trap the rename event of an excel sheet? Is it possible to get the renamed sheet name as soon as it'd changed? thanks and rgds |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Just to add:
Believe =Cell("filename") Will return the name of the activesheet, so you might want to use =Cell("filename",A1) the second argument can be any cell reference (on the sheet). -- Regards, Tom Ogilvy "JE McGimpsey" wrote in message ... There is no "rename event" in XL. If you have the Cell("filename") function on the sheet, renaming the sheet will fire the Calculate event, where you can check the name against a static or global variable. In article , "bmm" <newsgroup.com wrote: Hello, How can i trap the rename event of an excel sheet? Is it possible to get the renamed sheet name as soon as it'd changed? thanks and rgds |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Tom -
Do you see any difference in terms of firing a Worksheet_Calculate or Workbook_SheetCalculate event when a sheet in the workbook is renamed? I don't with MacXL. I was just thinking of an event trigger. If the filename is to be used, your addition is obviously the correct one. In article , "Tom Ogilvy" wrote: Just to add: Believe =Cell("filename") Will return the name of the activesheet, so you might want to use =Cell("filename",A1) the second argument can be any cell reference (on the sheet). |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If your only intent in using cell was to trigger a calculate event, then I
guess it doesn't make any difference what value it returns. -- Regards, Tom Ogilvy "JE McGimpsey" wrote in message ... Tom - Do you see any difference in terms of firing a Worksheet_Calculate or Workbook_SheetCalculate event when a sheet in the workbook is renamed? I don't with MacXL. I was just thinking of an event trigger. If the filename is to be used, your addition is obviously the correct one. In article , "Tom Ogilvy" wrote: Just to add: Believe =Cell("filename") Will return the name of the activesheet, so you might want to use =Cell("filename",A1) the second argument can be any cell reference (on the sheet). |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Trap show toolbar event | Links and Linking in Excel | |||
how can I trap the change event (Tab Press key) of these controls | Excel Worksheet Functions | |||
how can I trap the change event (Tab Press key) of these controls | Excel Worksheet Functions | |||
Trap CTRL+C keypress event | Excel Programming | |||
how to trap a event coming from a dll | Excel Programming |