Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default User Form Question

Hi there

I need to implement a user form that let's the user pick one of five
cases (basic, increased, decreased, superior, inferior) and when each
is picked, it runs a macro that changes specific cells. I have all
the macros recorded and saved, I am just clueless as to how to get the
list inside of the combo box and then have the macros executed. Any
help would be greatly appreciated!

Thank you

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default User Form Question

Hi Alex,

Try something like:

'=============
Private Sub ComboBox1_Change()
Select Case Me.ComboBox1.Value
Case "basic": Call Macro1
Case "increased": Call Macro2
Case "decreased": Call Macro3
Case "superior": Call Macro4
Case "inferior": Call Macro5
End Select
End Sub

'------------------
Private Sub UserForm_Initialize()
With Me.ComboBox1
.AddItem "basic"
.AddItem "increased"
.AddItem "decreased"
.AddItem "superior"
.AddItem "inferior"
End With
End Sub
'<<=============


---
Regards,
Norman


wrote in message
ups.com...
Hi there

I need to implement a user form that let's the user pick one of five
cases (basic, increased, decreased, superior, inferior) and when each
is picked, it runs a macro that changes specific cells. I have all
the macros recorded and saved, I am just clueless as to how to get the
list inside of the combo box and then have the macros executed. Any
help would be greatly appreciated!

Thank you



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
User Form question ah Excel Discussion (Misc queries) 1 November 5th 07 10:40 AM
User Form question TimN Excel Programming 2 July 27th 06 10:38 PM
user form question Gary Keramidas Excel Programming 1 October 29th 05 05:15 AM
User Form Question Steve Klenner Excel Programming 2 June 9th 05 10:07 PM
User Form Question Ray Batig Excel Programming 2 January 17th 04 03:28 PM


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