LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default User Form to display more than 1 reslut

I have the following function which looks at a list of data when "Cust" -
(customers name) is specified and returns the sales rep and sales value. The
function finds the first occurence of that name in the list. I would like it
to display all occurences. I would be grateful for any ideas.


Private Sub Retrieve_Click()
Dim Cust As Range
With Range("Custdata")
Set Cust = .Find(CUstname.Value)
If Cust Is Nothing Then
MsgBox ("Customer not found!")
CUstname.Value = " "
Exit Sub
Else
With Range(Cust.Address)
Salesrep = .Offset(0, 3)
LinevalueGBP = .Offset(0, 16)
End With
End If
End With
End Sub

Thank you,

Esther
 
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
Display contents of a cell in a user form text box -- Excel 2003 VBA hiskilini Excel Discussion (Misc queries) 7 April 4th 23 10:22 AM
I want user form to display when opening a work book JohannM Excel Worksheet Functions 1 September 14th 06 12:23 AM
user form question: text box to display result BigPig Excel Discussion (Misc queries) 0 February 28th 06 12:33 AM
user form question: text box to display result BigPig Excel Worksheet Functions 0 February 25th 06 08:17 PM


All times are GMT +1. The time now is 01:42 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"