Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel VBA/Macro - Textbox

I have created a small meal planner, in Excel2000.

I want to add a help box, similar to a comment box, using a macro and
text box.

Also when pressing the macro button can, the buttons text change. i.e
Open Help/Close help.

Any advice welcome
Many Thanks

Nic

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default Excel VBA/Macro - Textbox

Steelmaker;

You can have buttons that change their text ( caption ).
Here is an example.

Private Sub cbToggleDetails_Click()
With frmDetails
If .cbToggleDetails.Caption = "More Details" Then
.cbToggleDetails.Caption = "Less Details"
.cbMonth.SetFocus
.Height = 275
Else
.cbToggleDetails.Caption = "Less Details"
.cbToggleDetails.Caption = "More Details"
.cbMonth.SetFocus
.Height = 125
End If
End With
End Sub

Succes;

Mark.

More Excel ? www.rosenkrantz.nl or
------------------------------------------------------------------


"thesteelmaker " wrote in
message ...
I have created a small meal planner, in Excel2000.

I want to add a help box, similar to a comment box, using a macro and a
text box.

Also when pressing the macro button can, the buttons text change. i.e.
Open Help/Close help.

Any advice welcome
Many Thanks

Nick


---
Message posted from
http://www.ExcelForum.com/



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
Calculate Textbox value based on another textbox value.doc Tdungate Excel Discussion (Misc queries) 1 February 12th 09 07:11 PM
Calculate Textbox value based on another textbox value Tdungate Excel Discussion (Misc queries) 0 February 12th 09 07:03 PM
'Find' textbox value macro D Excel Discussion (Misc queries) 3 February 20th 08 05:26 PM
a macro that Formats a textbox based on value in a cell txm49 Excel Worksheet Functions 1 June 6th 07 02:36 PM
UserForm TextBox to ActiveSheet TextBox over 256 characters Dan E[_2_] Excel Programming 1 July 28th 03 07:36 PM


All times are GMT +1. The time now is 05:15 PM.

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"