Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 363
Default Find Selected value to .Offset from

Private Sub ComboBox23_DropButtonClick()
Application.ScreenUpdating = False
If ComboBox23.ListCount 0 Then Exit Sub
Dim lastcell As Long
Dim myrow As Long
lastcell = workSheets("InspectionData").Cells(Rows.Count,
"A").End(xlUp).Row
With ActiveWorkbook.workSheets("InspectionData")
For myrow = 2 To lastcell
If .Cells(myrow, 1) < "" Then
If .Cells(myrow, 1).Offset(-1, 2).Text = TextBox250.Text And
..Cells(myrow, 1).Offset(0, 0).Value = ComboBox2.Text And
IsNumeric(Trim(Mid(.Cells(myrow, 1), 2))) = True Then
For i = 2 To 22
If Cells(myrow, 3).Offset(i, 0).Value < "" Then
ComboBox23.AddItem Cells(myrow, 3).Offset(i, 0)
ComboBox23.List(ComboBox23.ListCount - 1, 1) = Cells(myrow, 3).Offset(i,
0).Address
End If
Next i
End If
End If
Next
End With
Application.ScreenUpdating = True
End Sub


The above code populates a list into Combobox23.

What i want to do is gain the value of the cell (.Offset(0,7)) from the
value that WAS Selected in the Combobox.
I want:


Textbox2.value = Combobox23.Selection.Offset(0,7) ???????



I am sure i can add something here but it has avoided me getting it to work.

Can anyone see how to do 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
Use of OFFSET and LOOKUP to find a value in a table Matt G Excel Discussion (Misc queries) 6 August 26th 08 11:53 AM
Find, Copy offset to offset on other sheet, Run-time 1004. Finny[_3_] Excel Programming 10 December 7th 06 11:46 PM
Find then offset. Pete Excel Worksheet Functions 6 September 13th 06 10:37 PM
Formula to find last value in a range & then offset [email protected] Excel Worksheet Functions 4 July 28th 06 05:54 PM
Find, Offset, Enter Number BUBBA Excel Programming 2 January 9th 04 11:33 PM


All times are GMT +1. The time now is 03:26 PM.

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"