Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 343
Default Unhide a Label and TextBox


On my UserForm I have set Visible value to False for Label7 and TextBox2.
It is my desire to have them become visible if OptionButton10 is checked, so
I tried the code below. When I click on OptionButton10 I get an "Invalid
use of property" error message.

Is there anyway to do what I am attempting

Private Sub OptionButton10_Click()
Label7.Visible
TextBox2.Visible
End Sub

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 343
Default Unhide a Label and TextBox


Sorry I realized that at the end of each line I forgot the "= True"

"Patrick C. Simonds" wrote in message
...
On my UserForm I have set Visible value to False for Label7 and TextBox2.
It is my desire to have them become visible if OptionButton10 is checked,
so I tried the code below. When I click on OptionButton10 I get an
"Invalid use of property" error message.

Is there anyway to do what I am attempting

Private Sub OptionButton10_Click()
Label7.Visible
TextBox2.Visible
End Sub


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
Macro or VB code to hide and unhide Label box Den Excel Discussion (Misc queries) 1 May 19th 10 02:37 AM
Floating textbox/label Jock Excel Programming 6 March 10th 10 11:19 AM
Reference Label from TextBox Stephen Newman[_2_] Excel Programming 0 July 20th 08 01:11 PM
Reference Label from TextBox Stephen Newman[_2_] Excel Programming 0 July 20th 08 01:09 PM
textbox result to label paradise Excel Programming 2 November 15th 03 01:10 PM


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