LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 81
Default changing label caption by user input

I have a combo box that I have written code to change a labels caption
depending on what the user selects from the combo list. it works right until
the last item in the list is chosen...it doesn't change. This is the code
that I am using

If cmbSavType.Value = "1) Last Year" Then
lblBase.Caption = "Prior:"
ElseIf cmbSavType.Value = "2) Other Levels" Then
lblBase.Caption = "Market:"
ElseIf cmbSavType.Value = "3) Inflation" Then
lblBase.Caption = "Inflated:"
ElseIf cmbSavType.Value = "4) Lowest" Then
lblBase.Caption = "Lowest:"
End If
 
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
Changing label caption in a Userform to an opterator value jumpjump Excel Programming 2 August 25th 05 01:50 AM
Label - Caption not changing Brian Hribek[_2_] Excel Programming 0 October 11th 04 10:02 PM
Label - Caption not changing Brian Hribek Excel Programming 1 October 11th 04 09:19 PM
Changing Cell Contents Based Upon User Input BigCheese Excel Programming 1 June 23rd 04 07:09 PM
changing the caption of a label Koos Excel Programming 4 October 18th 03 02:36 PM


All times are GMT +1. The time now is 01:36 AM.

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"