Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Steve
 
Posts: n/a
Default Variable control tip text

Hi

On a userform, is it possible to have the control tip text for a text
box determined by the actual contents of the box?

The text box in question is next to a label "See also:". It would
contain the name of a state benefit and would fill via a VLOOKUP from a
combobox. I would like the control tip text to contain phone numbers
for the local benefit provider.

I know it can be done by VLOOKUPing to another label/text box, but I'm
being bloody minded and want it in the control tip.

Any advice on how to do so would be much appreciated.

For example, the combo box is selected to "Income Support." The label &
text box would then show "See Also:" "Jobseeker's Allowance" and the
control tip "Phone 01202 333xxx"

TIA

Steve

  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Steve,

here is a very simple example. I would expect you to get the data from a
table, but it should show the technique

Private Sub ComboBox1_Change()
Select Case ComboBox1.Value
Case "Income Support":
TextBox1.text = "Jobseeker's Allowance"
TextBox1.ControlTipText = "Phone 01202 333xxx"
Case "Housing Support":
TextBox1.text = "Hosuing B enefit"
TextBox1.ControlTipText = "Phone 01202 345xxx"
End Select

End Sub


BTW I see you are in Poole/Bournemouth. So am I, if you want any direct
help, I would be glad to give it for the old DHSS.

--
HTH

Bob Phillips

"Steve" wrote in message
oups.com...
Hi

On a userform, is it possible to have the control tip text for a text
box determined by the actual contents of the box?

The text box in question is next to a label "See also:". It would
contain the name of a state benefit and would fill via a VLOOKUP from a
combobox. I would like the control tip text to contain phone numbers
for the local benefit provider.

I know it can be done by VLOOKUPing to another label/text box, but I'm
being bloody minded and want it in the control tip.

Any advice on how to do so would be much appreciated.

For example, the combo box is selected to "Income Support." The label &
text box would then show "See Also:" "Jobseeker's Allowance" and the
control tip "Phone 01202 333xxx"

TIA

Steve



  #3   Report Post  
Steve
 
Posts: n/a
Default

BTW I see you are in Poole/Bournemouth. So am I, if you want any direct
help, I would be glad to give it for the old DHSS.


It's worse than that... it's the Poole council! :)

Cheers Bob. I'll probably call on you for the latest dumb scheme - I
mean project - they give me.

Steve

  #4   Report Post  
Steve
 
Posts: n/a
Default

BTW I see you are in Poole/Bournemouth. So am I, if you want any direct
help, I would be glad to give it for the old DHSS.


It's worse than that... it's the Poole council! :)

Cheers Bob. I'll probably call on you for the latest dumb scheme - I
mean project - they give me.

Steve

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
Formulas dealing with text data Bagia Excel Worksheet Functions 6 June 20th 05 10:29 PM
Today variable to calender control anonymous Excel Discussion (Misc queries) 2 March 10th 05 03:22 PM
Sort or Filter option? Mcobra41 Excel Worksheet Functions 3 February 23rd 05 07:22 PM
Read Text File into Excel Using VBA Willie T Excel Discussion (Misc queries) 13 January 8th 05 12:37 AM
Putting text in a column based on variable text from another colum Jacky D. Excel Discussion (Misc queries) 1 December 16th 04 06:09 PM


All times are GMT +1. The time now is 03:11 PM.

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

About Us

"It's about Microsoft Excel"