Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 363
Default Combobox value to be set as Target for referencing from. How ?

With the following section of code, i currently have a combobox value placed
in cell O4.

With ActiveWorkbook.workSheets("Inspections")
..Select
Range("O4").Value = ComboBox1.Value
End With

The combobox value is taken from sheet4 and placed in O4 in sheet2 for
viewing when required.

This value from sheet4, is ALWAYS in column A, but can be in any row.

I want to place many other values from sheet4 into sheet2 also, but need to
reference these other values ACCORDING to where the value in the combobox
value is.
IE.

I want to use some thing like, if combobox1.value was in seet4.range("A1")
then :

Combobox1.value = sheet4.target cell

sheet2.range("A5").value = targetcell.offset(0,4).value ' I can then place
the other values from sheet4 into sheet2 by where those values are related
to the location of the combobox value(Target).


To hopefully explain clearer.
EG.

sheet4:

A1 = 500
A5 = ABC
B3 = Yellow
C2 = 1000


When the combobox value is selected(sheet4.column A):

Sheet2:
Target = 500
A5 = target.offset(0,4)
B3 = target.offset(1,2)
C2 = target.offset(2,1)
etc....

All these values that are brought in from sheet4, are NOT in any specific
ROW.
Therefore i need to refernce them by WHERE the combobox value WAS.

Can anyone help me get started on this ?

Corey....



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 363
Default Setting Target or address????

Any Takers???

How do i set the combobox value chosen to be a target or address to locate
other values from?

COrey....
"Corey" wrote in message
...
With the following section of code, i currently have a combobox value
placed in cell O4.

With ActiveWorkbook.workSheets("Inspections")
.Select
Range("O4").Value = ComboBox1.Value
End With

The combobox value is taken from sheet4 and placed in O4 in sheet2 for
viewing when required.

This value from sheet4, is ALWAYS in column A, but can be in any row.

I want to place many other values from sheet4 into sheet2 also, but need
to reference these other values ACCORDING to where the value in the
combobox value is.
IE.

I want to use some thing like, if combobox1.value was in seet4.range("A1")
then :

Combobox1.value = sheet4.target cell

sheet2.range("A5").value = targetcell.offset(0,4).value ' I can then place
the other values from sheet4 into sheet2 by where those values are related
to the location of the combobox value(Target).


To hopefully explain clearer.
EG.

sheet4:

A1 = 500
A5 = ABC
B3 = Yellow
C2 = 1000


When the combobox value is selected(sheet4.column A):

Sheet2:
Target = 500
A5 = target.offset(0,4)
B3 = target.offset(1,2)
C2 = target.offset(2,1)
etc....

All these values that are brought in from sheet4, are NOT in any specific
ROW.
Therefore i need to refernce them by WHERE the combobox value WAS.

Can anyone help me get started on this ?

Corey....





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
ActiveCell.FormulaR1C1 referencing a moving target. Bob Phillips Excel Programming 1 December 19th 06 04:33 PM
Referencing Combobox with other cells in a different worksheet?? Adam Excel Programming 4 March 29th 05 09:07 AM
referencing ComboBox salihyil[_7_] Excel Programming 1 February 26th 04 02:13 PM
referencing ComboBox salihyil[_9_] Excel Programming 0 February 26th 04 09:57 AM
Referencing a ComboBox control from a Workbook Object? debartsa Excel Programming 3 December 9th 03 08:43 PM


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