Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 152
Default How to permanently change Dialog Caption while in the Dialog

I have a form that I use to show or hide sheets in Excel.
It has 4 checkboxes with various search strings as a caption.
For instance,
Checkbox1.Caption = "DAB" and when that box is checked, the form shows all
the sheet names that contain "DAB".

I want to make this form more usable where I could transfer it in other
workbooks or have the user change the default search string. To do this I
need to be able to change the caption and have it "stick" once the dialog box
is closed.

The problem is that once I close the dialog box and re-open it, the caption
goes back to what it was before. How do I save the form design automatically
before the form is closed by the user?

Here's the code I have that changes the caption temporarily, but not
permanent:

Private Sub Image1_Click()
'This will allow user to change the label of the search check boxes
CheckBox1.Caption = Application.InputBox(prompt:="Checkbox 1",
Default:=CheckBox1.Caption)
End Sub


Thanks,
MikeZz

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
My File Open Dialog is "permanently" maximised veryeavy Excel Discussion (Misc queries) 4 December 12th 07 02:35 PM
How to permanently change Dialog Caption while in the Dialog MikeZz Excel Programming 2 July 11th 06 04:53 PM
Change dialog button assignment Kristine Excel Programming 0 May 18th 06 05:54 PM
How to change Titlel of Dialog Box? Naman.Patel[_2_] Excel Programming 1 February 14th 06 12:05 PM
control of dialog macro dialog box. on open Gerry Abbott Excel Programming 0 July 22nd 04 05:41 PM


All times are GMT +1. The time now is 04:25 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"