Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 273
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 273
Default 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
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
Absolute refferences Sharon Excel Discussion (Misc queries) 2 April 1st 08 10:13 PM
Need to get cell input message be attached to cell R Excel Discussion (Misc queries) 3 December 21st 07 03:50 PM
How to copy an array without changing relative cell refferences? Dmitry Excel Worksheet Functions 12 June 20th 06 02:07 PM
How to replace column letter in refferences with a function using the old column letter? Dmitry Kopnichev Links and Linking in Excel 6 October 13th 05 09:09 AM
How to replace column letter in refferences with a function using the old column letter? Dmitry Kopnichev Excel Worksheet Functions 6 October 13th 05 09:09 AM


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