PC Review


Reply
Thread Tools Rate Thread

Combobox help.....really easy I imagine

 
 
ryan.fitzpatrick3@safeway.com
Guest
Posts: n/a
 
      17th Dec 2007
I have a combobox that has 8 listed items lets say 1-8. I would like
where if you choose 3 in the combobox cell D6 changes to 3 then if I
choose 6 cell chooses 6 and so, whatever number i choose changes D6 to
equal that value. Also I have a chart macro attached to each number
whereas I choose 3 a chart will generate and a different chart will
generate the same for the rest of the numbers. Any help.

Ryan
 
Reply With Quote
 
 
 
 
JLGWhiz
Guest
Posts: n/a
 
      18th Dec 2007
One way is to double click the combo box while in design mode and put this
between the two lines of code that appear there:

The final product should be:

Private Sub ComboBox1_Click()
ActiveSheet.Range("D6") = ComboBox1.Value
End Sub

There are a couple of other ways to do it, but this is as good as the others.

"(E-Mail Removed)" wrote:

> I have a combobox that has 8 listed items lets say 1-8. I would like
> where if you choose 3 in the combobox cell D6 changes to 3 then if I
> choose 6 cell chooses 6 and so, whatever number i choose changes D6 to
> equal that value. Also I have a chart macro attached to each number
> whereas I choose 3 a chart will generate and a different chart will
> generate the same for the rest of the numbers. Any help.
>
> Ryan
>

 
Reply With Quote
 
ryan.fitzpatrick3@safeway.com
Guest
Posts: n/a
 
      18th Dec 2007
On Dec 17, 4:09 pm, JLGWhiz <JLGW...@discussions.microsoft.com> wrote:
> One way is to double click the combo box while in design mode and put this
> between the two lines of code that appear there:
>
> The final product should be:
>
> Private Sub ComboBox1_Click()
> ActiveSheet.Range("D6") = ComboBox1.Value
> End Sub
>
> There are a couple of other ways to do it, but this is as good as the others.
>
> "ryan.fitzpatri...@safeway.com" wrote:
> > I have a combobox that has 8 listed items lets say 1-8. I would like
> > where if you choose 3 in the combobox cell D6 changes to 3 then if I
> > choose 6 cell chooses 6 and so, whatever number i choose changes D6 to
> > equal that value. Also I have a chart macro attached to each number
> > whereas I choose 3 a chart will generate and a different chart will
> > generate the same for the rest of the numbers. Any help.

>
> > Ryan


How do I link that code to the combobox? Whats the difference between
private sub and sub? because private sub doesnt come up when I assign
a macro to the combobox but sub does?
 
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
very easy combobox question Viktor via AccessMonster.com Microsoft Access Forms 2 6th Feb 2007 01:29 PM
inputbox for a combobox (easy) =?Utf-8?B?ZG9ncGlnZmlzaA==?= Microsoft Access Forms 3 17th May 2005 10:37 PM
Really easy combobox question Michael Rodriguez Microsoft C# .NET 1 24th Feb 2005 10:37 PM
Custom ComboBox -- Easy or Not? Ron Microsoft C# .NET 2 11th Jul 2003 01:10 AM
Re: Easy ComboBox to SubForm question John Vinson Microsoft Access Form Coding 4 10th Jul 2003 05:13 PM


Features
 

Advertising
 

Newsgroups
 


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