Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Message Box With Cell Refferences
Greetings,
I am trying to get a msgbox to show me 2 pieces of data after coming out of a UserForm. The cells are in column B and D of the target row. Here is the code that will pick the row, and link all but those two cells to my "Enter" sheet: Private Sub GetCustInfo_MatchFound_Button_Click() If GetCustInfo_ListBox.ListIndex = -1 Then Exit Sub Set FoundCell = Range("MyRange").Find(GetCustInfo_ListBox, , _ xlValues) If Not FoundCell Is Nothing Then Range("SI_CI_Chooser") = FoundCell End If Unload Me Sheets("Enter").Activate 'Here I turn on and off my control buttons - I'll skip this part 'This is the code I tried but I soon realized that I do not know how 'to make this work MsgBox "First Date " & Range("foundcell").Offset(0, 2) Anybody have a suggestion on how to see the contents of columns B and D of the chosen row? TIA -Minitman |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Message Box With Cell Refferences
One way:
MsgBox "First Date " & FoundCell.Offset(0, 2).Value This assumes that FoundCell is a public value declared in a regular code module. In article , Minitman wrote: Greetings, I am trying to get a msgbox to show me 2 pieces of data after coming out of a UserForm. The cells are in column B and D of the target row. Here is the code that will pick the row, and link all but those two cells to my "Enter" sheet: Private Sub GetCustInfo_MatchFound_Button_Click() If GetCustInfo_ListBox.ListIndex = -1 Then Exit Sub Set FoundCell = Range("MyRange").Find(GetCustInfo_ListBox, , _ xlValues) If Not FoundCell Is Nothing Then Range("SI_CI_Chooser") = FoundCell End If Unload Me Sheets("Enter").Activate 'Here I turn on and off my control buttons - I'll skip this part 'This is the code I tried but I soon realized that I do not know how 'to make this work MsgBox "First Date " & Range("foundcell").Offset(0, 2) Anybody have a suggestion on how to see the contents of columns B and D of the chosen row? |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Message Box With Cell Refferences
Hey JE,
That works, thanks. -Minitman On Mon, 10 May 2004 10:41:03 -0600, JE McGimpsey wrote: One way: MsgBox "First Date " & FoundCell.Offset(0, 2).Value This assumes that FoundCell is a public value declared in a regular code module. In article , Minitman wrote: Greetings, I am trying to get a msgbox to show me 2 pieces of data after coming out of a UserForm. The cells are in column B and D of the target row. Here is the code that will pick the row, and link all but those two cells to my "Enter" sheet: Private Sub GetCustInfo_MatchFound_Button_Click() If GetCustInfo_ListBox.ListIndex = -1 Then Exit Sub Set FoundCell = Range("MyRange").Find(GetCustInfo_ListBox, , _ xlValues) If Not FoundCell Is Nothing Then Range("SI_CI_Chooser") = FoundCell End If Unload Me Sheets("Enter").Activate 'Here I turn on and off my control buttons - I'll skip this part 'This is the code I tried but I soon realized that I do not know how 'to make this work MsgBox "First Date " & Range("foundcell").Offset(0, 2) Anybody have a suggestion on how to see the contents of columns B and D of the chosen row? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Absolute refferences | Excel Discussion (Misc queries) | |||
Need to get cell input message be attached to cell | Excel Discussion (Misc queries) | |||
How to copy an array without changing relative cell refferences? | Excel Worksheet Functions | |||
How to replace column letter in refferences with a function using the old column letter? | Links and Linking in Excel | |||
How to replace column letter in refferences with a function using the old column letter? | Excel Worksheet Functions |