Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default Maintaining Macros on a sheet when it is saved as a new workbook

I have an application where via one macro the user can double-click on
a specific cell and it pops up a TextBox with a definition. Then they
can click on the TextBox to close it.

Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As
Boolean)
'displays definition with a live example
If ActiveCell.Address = "$B$3" Then
Cancel = True
With ActiveSheet
.Shapes("Group1").Visible = True
End With

ElseIf ActiveCell.Address = "$J$3" Then
Cancel = True
With ActiveSheet
.Shapes("Group4").Visible = True
End With

End If
End Sub


Then through a separate macro the user can click on the TextBox to
close it.

Sub CloseTB1()
With ActiveSheet
.Shapes("Group1").Visible = False
End With
End Sub

These both reside on a sheet-tab named "Report".


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete all macros if workbook is saved with another name Danny Excel Worksheet Functions 4 March 16th 07 09:57 PM
hyperlink to sheet in workbook saved as html Y Sbuty Excel Discussion (Misc queries) 0 March 26th 06 11:54 PM
Running & maintaining macros remotely Fanatik Excel Programming 1 September 26th 05 12:25 PM
Hyperlink to specific sheet; workbook saved as html Bawn Excel Worksheet Functions 0 January 5th 05 01:31 PM
How to execute macros not saved in a workbook David P.[_3_] Excel Programming 0 April 1st 04 02:51 AM


All times are GMT +1. The time now is 11:59 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"