+ Reply to Thread
Results 1 to 3 of 3

address of cell

Hybrid View

  1. #1
    Registered User
    Join Date
    11-21-2011
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Excel 2010
    Posts
    6

    Exclamation address of cell

    hi
    help me pls...

    my question is

    A B c
    1 as
    2 ad
    3 sd
    4 dg
    5 ki
    6 we
    7 rt
    8 ty
    9 ru

    my question is that is there is any vba code that will give me the location of the searched element,say i searched"ki" then it wiil show result "5" in column B or c any...

  2. #2
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: address of cell

    hi look at attachment

    sorry you wanted VBA so
    Sub aa()
    
    MsgBox Application.WorksheetFunction.Match("ki", Cells.Columns(1))
    
    End Sub
    Attached Files Attached Files
    Last edited by tom1977; 03-12-2012 at 01:33 PM.
    Regards

    tom1977

    If You are satisfied with my solution click the small star icon on the left to say thanks.

  3. #3
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: address of cell

    Hi Sunny,

    See the attachment where I have tried extracting the address of the cell. let me know if this is what you were looking for. Thanks.


    Regards,
    DILIPandey


    <click on below 'star' if this helps>
    Attached Files Attached Files
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1