Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
lc lc is offline
external usenet poster
 
Posts: 6
Default Combobox question

Hi,

I am trying to create a combo box such that when I select a value from
the combo box, it will link me to a cell I had specified.

I am also trying to create another combo box such that when I select a
value from the combo box, it will link me to another worksheet of the
same workbook.

Any help is greatly appreciated.

Thanks.

lc

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Combobox question

In the linkedcell property

Sheet1!A1

would like the combobox to cell A1 on Sheet1.

--
Regards,
Tom Ogilvy

"lc" wrote in message
oups.com...
Hi,

I am trying to create a combo box such that when I select a value from
the combo box, it will link me to a cell I had specified.

I am also trying to create another combo box such that when I select a
value from the combo box, it will link me to another worksheet of the
same workbook.

Any help is greatly appreciated.

Thanks.

lc



  #3   Report Post  
Posted to microsoft.public.excel.programming
lc lc is offline
external usenet poster
 
Posts: 6
Default Combobox question

What I really want to do is to link each selection with a differenct
cell. For example, if my input range consists of the following
information:

1. a
2. b
3. c
4. d

The cells I want my selection to link to is:

1. C100
2. A20
3. D40
4. F50

When I select "a" from the combo box, it will go to the cell C100.
When I select "b" from the combo box, it will go to cell A20.
etc.

I hope this clarifies my question

Thanks.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Combobox question

Private Sub Combobox1_Click()
Dim v as Variant
v = Array("C100","A20","D40","F50")
if combobox1.listindex < -1 then
Range(v(combobox.ListIndex + 1)).Select
end if
End Sub

--
Regards,
Tom Ogilvy

"lc" wrote in message
oups.com...
What I really want to do is to link each selection with a differenct
cell. For example, if my input range consists of the following
information:

1. a
2. b
3. c
4. d

The cells I want my selection to link to is:

1. C100
2. A20
3. D40
4. F50

When I select "a" from the combo box, it will go to the cell C100.
When I select "b" from the combo box, it will go to cell A20.
etc.

I hope this clarifies my question

Thanks.



  #5   Report Post  
Posted to microsoft.public.excel.programming
lc lc is offline
external usenet poster
 
Posts: 6
Default Combobox question

Hi,

I was wondering what the code would be if I want it to select sheets
instead of cells. I have tried changing "C100, A20, D40, F50" to the
sheet names but it did not work.

Any help would be greatly appreciated.

Thanks.

lc
Tom Ogilvy wrote:
Private Sub Combobox1_Click()
Dim v as Variant
v = Array("C100","A20","D40","F50")
if combobox1.listindex < -1 then
Range(v(combobox.ListIndex + 1)).Select
end if
End Sub

--
Regards,
Tom Ogilvy

"lc" wrote in message
oups.com...
What I really want to do is to link each selection with a differenct
cell. For example, if my input range consists of the following
information:

1. a
2. b
3. c
4. d

The cells I want my selection to link to is:

1. C100
2. A20
3. D40
4. F50

When I select "a" from the combo box, it will go to the cell C100.
When I select "b" from the combo box, it will go to cell A20.
etc.

I hope this clarifies my question

Thanks.


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
ComboBox Question jlclyde Excel Discussion (Misc queries) 2 August 27th 09 09:31 PM
Combobox Question Andy Excel Programming 2 July 26th 05 04:52 PM
combobox question JT[_2_] Excel Programming 2 February 15th 05 04:32 PM
Combobox Question scrabtree[_2_] Excel Programming 1 October 7th 04 07:48 PM
VB question on ComboBox neeas Excel Programming 1 November 14th 03 09:54 PM


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