Good Solution Don

On Thu, Jan 5, 2012 at 8:00 PM, dguillett1 <dguille...@gmail.com> wrote:

> Another way, using FIND, or use application.vlookup
>
> Sub GetData()
> Dim mv As Range
> mv = InputBox("Please enter a value")
> If mv = "" Then Exit Sub
> Set mf = Columns(1).Find(What:=mv, LookIn:=xlValues, _
>  LookAt:=xlWhole, SearchOrder:=xlByRows, _
>  SearchDirection:=xlNext, _
>  MatchCase:=False, SearchFormat:=False)
> If Not mf Is Nothing Then MsgBox mv & " is " & mf.Offset(, 1)
> End Sub
>
>
> Don Guillett
> SalesAid Software
> dguille...@gmail.com
> -----Original Message----- From: Seba
> Sent: Thursday, January 05, 2012 6:55 AM
> To: MS EXCEL AND VBA MACROS
> Subject: $$Excel-Macros$$ get data from list and display it in msgbox
>
>
> Hi,
>
> I need help with the getting the data from a list and display it in a
> msgbox. I don't wan't to do this via the ususal lookup functions in
> excel, because I'd like to avoid moving around the worksheet too much.
> Would it be possible to get a macro to do the following:
>
> 1. Open a inputbox to enter the search value A.
> 2. Lookup this value in the list on another worksheet in the same
> workbook.
> 3. Display the value pair in the next column in the msgbox.
>
> ------------------------------**-----------------
> Example:
>
> Column A     Column B
>
> Sistem         User
> ------------------------------**-----------------
>
> So, I would like to enter the sistem in the inputbox and get the
> corresponding user back in the msgbox.
>
> Thank you for your help.
> regards,
> seba
>
> --
> FORUM RULES (986+ members already BANNED for violation)
>
> 1) Use concise, accurate thread titles. Poor thread titles, like Please
> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
> will not get quick attention or may not be answered.
>
> 2) Don't post a question in the thread of another member.
>
> 3) Don't post questions regarding breaking or bypassing any security
> measure.
>
> 4) Acknowledge the responses you receive, good or bad.
>
> 5)  Cross-promotion of, or links to, forums competitive to this forum in
> signatures are prohibited.
>
> NOTE  : Don't ever post personal or confidential data in a workbook. Forum
> owners and members are not responsible for any loss.
>
> ------------------------------**------------------------------**
> ------------------------------**------------
> To post to this group, send email to excel-macros@googlegroups.com
> --
> FORUM RULES (986+ members already BANNED for violation)
>
> 1) Use concise, accurate thread titles. Poor thread titles, like Please
> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
> will not get quick attention or may not be answered.
>
> 2) Don't post a question in the thread of another member.
>
> 3) Don't post questions regarding breaking or bypassing any security
> measure.
>
> 4) Acknowledge the responses you receive, good or bad.
>
> 5)  Cross-promotion of, or links to, forums competitive to this forum in
> signatures are prohibited.
> NOTE  : Don't ever post personal or confidential data in a workbook. Forum
> owners and members are not responsible for any loss.
>
> ------------------------------**------------------------------**
> ------------------------------**------------
> To post to this group, send email to excel-macros@googlegroups.com
>



-- 
Thanks & regards,
Noorain Ansari
 *http://excelmacroworld.blogspot.com/*<http://excelmacroworld.blogspot.com/>
*http://noorain-ansari.blogspot.com/* <http://noorain-ansari.blogspot.com/>

-- 
FORUM RULES (986+ members already BANNED for violation)

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.

2) Don't post a question in the thread of another member.

3) Don't post questions regarding breaking or bypassing any security measure.

4) Acknowledge the responses you receive, good or bad.

5)  Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 

NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.

------------------------------------------------------------------------------------------------------
To post to this group, send email to excel-macros@googlegroups.com

Reply via email to