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


Hi,
I have a 25 combobox's on my spreadsheet, when an item from the list is
selected it makes a call to a webservice, which returns to items of
data. I want the returned data to be placed in the cells next to the
combobox that was used, i.e. combobox in cell B1 I want the data to go
in cell B2 and B3.
This works if I use the following in a for loop:

Cells(31, 3 + i) = ComponentResult(i)

But my problem is that the comboBox could be 1 of 25 therefore how do I
get the cell reference without hard coding 25 different possible cells?
Tired using the linked cell, also tried setting the active cell to that
of the combobox but with no joy! any ideas am I going about this in the
correct way?


--
cmpcwil2
------------------------------------------------------------------------
cmpcwil2's Profile: http://www.excelforum.com/member.php...o&userid=33411
View this thread: http://www.excelforum.com/showthread...hreadid=532308

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default ComboBox help.

combobox from the control toolbox toolbar?

If you know which combobox executed the code, then you can use

activesheet.oleObjects("Combobox1").topLeftCell.of fset(1,0)).Value =

--
Regards,
Tom Ogilvy


"cmpcwil2" wrote:


Hi,
I have a 25 combobox's on my spreadsheet, when an item from the list is
selected it makes a call to a webservice, which returns to items of
data. I want the returned data to be placed in the cells next to the
combobox that was used, i.e. combobox in cell B1 I want the data to go
in cell B2 and B3.
This works if I use the following in a for loop:

Cells(31, 3 + i) = ComponentResult(i)

But my problem is that the comboBox could be 1 of 25 therefore how do I
get the cell reference without hard coding 25 different possible cells?
Tired using the linked cell, also tried setting the active cell to that
of the combobox but with no joy! any ideas am I going about this in the
correct way?


--
cmpcwil2
------------------------------------------------------------------------
cmpcwil2's Profile: http://www.excelforum.com/member.php...o&userid=33411
View this thread: http://www.excelforum.com/showthread...hreadid=532308


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default ComboBox help.


I have tried with both the control toolbox and the visual basic one.
Thanks for the tip I will give it a go.
Cheer

--
cmpcwil
-----------------------------------------------------------------------
cmpcwil2's Profile: http://www.excelforum.com/member.php...fo&userid=3341
View this thread: http://www.excelforum.com/showthread.php?threadid=53230

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default ComboBox help.


Hi,
activesheet.oleObjects("Combobox1").topLeftCell.of fset(1,0)).Value =

This is exactly what I was after, I have spent days looking for this s
thank you very muc

--
cmpcwil
-----------------------------------------------------------------------
cmpcwil2's Profile: http://www.excelforum.com/member.php...fo&userid=3341
View this thread: http://www.excelforum.com/showthread.php?threadid=53230

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
fill combobox depending on selection from another combobox Adam Francis Excel Discussion (Misc queries) 2 July 24th 08 07:39 PM
ComboBox list reliant on the entry from a different ComboBox ndm berry[_2_] Excel Programming 4 October 4th 05 04:40 PM
How Do I Load A ComboBox RowSource From The Results Of Another ComboBox Minitman[_4_] Excel Programming 3 October 26th 04 07:58 PM
Populating combobox from another combobox David Goodall Excel Programming 1 September 12th 04 03:42 PM
Combobox Scott Excel Programming 2 July 23rd 03 02:49 PM


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