PC Review


Reply
Thread Tools Rate Thread

Automatic Return When Choosing Drop Down Menu Sleection

 
 
lean cost man
Guest
Posts: n/a
 
      1st Jul 2008
I have code set up such that when a cell with a drop down menu is chosen, the
screen view increases to 120% (so the drop down list is easier to read).
Once the selection in the menu is made, you can click any other cell and the
screen view returns to the original zoom value and a specific cell, A1.
Rather than an extra key stroke of clicking another cell, I would like to to
have the screen view zoom and cursor location all happen when the drop down
menu selection is made. I appreciate any feedback as to how to accomplish
this.
 
Reply With Quote
 
 
 
 
JR Form
Guest
Posts: n/a
 
      7th Jul 2008
lean cost man,

Is the drop down menu a combo box or is it the validation drop down box?


"lean cost man" wrote:

> I have code set up such that when a cell with a drop down menu is chosen, the
> screen view increases to 120% (so the drop down list is easier to read).
> Once the selection in the menu is made, you can click any other cell and the
> screen view returns to the original zoom value and a specific cell, A1.
> Rather than an extra key stroke of clicking another cell, I would like to to
> have the screen view zoom and cursor location all happen when the drop down
> menu selection is made. I appreciate any feedback as to how to accomplish
> this.

 
Reply With Quote
 
lean cost man
Guest
Posts: n/a
 
      7th Jul 2008
This is a Combo Box.

"JR Form" wrote:

> lean cost man,
>
> Is the drop down menu a combo box or is it the validation drop down box?
>
>
> "lean cost man" wrote:
>
> > I have code set up such that when a cell with a drop down menu is chosen, the
> > screen view increases to 120% (so the drop down list is easier to read).
> > Once the selection in the menu is made, you can click any other cell and the
> > screen view returns to the original zoom value and a specific cell, A1.
> > Rather than an extra key stroke of clicking another cell, I would like to to
> > have the screen view zoom and cursor location all happen when the drop down
> > menu selection is made. I appreciate any feedback as to how to accomplish
> > this.

 
Reply With Quote
 
JR Form
Guest
Posts: n/a
 
      7th Jul 2008
LCM,

Try this code for a solution. Set up a new combo box and name it combobox1
then put this code behind it.

'**********************************
Private Sub ComboBox1_Change()
ZoomMe (100)
ActiveSheet.Range("A1").Select
End Sub

Private Sub ComboBox1_DropButtonClick()
If ComboBox1.ListCount > 0 Then
Exit Sub
Else
ComboBox1.AddItem "120"
ComboBox1.AddItem "130"
ComboBox1.AddItem "140"
ComboBox1.AddItem "150"
End If
End Sub

Private Sub ComboBox1_GotFocus()
ZoomMe (200)
End Sub

Add this to a module-
'**************************
Function ZoomMe(Val1 As Integer)
ActiveWindow.Zoom = Val1
End Function
'**************************



"lean cost man" wrote:

> This is a Combo Box.
>
> "JR Form" wrote:
>
> > lean cost man,
> >
> > Is the drop down menu a combo box or is it the validation drop down box?
> >
> >
> > "lean cost man" wrote:
> >
> > > I have code set up such that when a cell with a drop down menu is chosen, the
> > > screen view increases to 120% (so the drop down list is easier to read).
> > > Once the selection in the menu is made, you can click any other cell and the
> > > screen view returns to the original zoom value and a specific cell, A1.
> > > Rather than an extra key stroke of clicking another cell, I would like to to
> > > have the screen view zoom and cursor location all happen when the drop down
> > > menu selection is made. I appreciate any feedback as to how to accomplish
> > > this.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Choosing a drop-down menu selection returns value to another cell Mica Microsoft Excel Programming 2 22nd Mar 2010 08:10 PM
How to get a drop down menu to return another value Malcolm Microsoft Excel Misc 1 4th Jul 2009 10:51 PM
Default value in Drop down menu and automatic selections Body Microsoft Excel Worksheet Functions 3 12th Sep 2008 01:55 AM
stop automatic drop down menu scrolling? chimp1cards Windows XP General 1 24th Jul 2008 05:17 PM
stop automatic drop down menu scrolling? chimp1cards Windows XP Help 0 24th Jul 2008 02:50 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:07 PM.