+ Reply to Thread
Results 1 to 5 of 5

Need to get first cell value while using Filter option through Coding

  1. #1
    Registered User
    Join Date
    04-19-2013
    Location
    Delhi, India
    MS-Off Ver
    Excel 2007
    Posts
    4

    Need to get first cell value while using Filter option through Coding

    Hi

    I’m using excel 2007 and where I am searching data through filter/contains by some keywords. I need VBA code for to locate first cell value which is coming under filter.
    Could anyone please help me…

    Looking for great solutions...

  2. #2
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: Need to get first cell value while using Filter option through Coding

    You could use this code... if your first Row is column title then use Areas(2):
    This is for the address:
    Please Login or Register  to view this content.
    This is for the row:
    Please Login or Register  to view this content.
    Regards,
    Antonio
    Last edited by antoka05; 04-22-2013 at 08:25 AM. Reason: Not correct answer, I'm sorry!

  3. #3
    Registered User
    Join Date
    04-19-2013
    Location
    Delhi, India
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Need to get first cell value while using Filter option through Coding

    Hi Antonio,

    Thanks for you quick Response... It's working for me but there is one bug if data in coming in 2nd row then it's picking next cell no like...

    D1 = Header
    D2 = Visible Value
    D13 = Visible Value.

    Ideally it should pick D2 value but it's jumping to next visible value. it's working fine with first visible more then 2 visible row. Could you please help...

  4. #4
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: Need to get first cell value while using Filter option through Coding

    Yes, you're right, my previous code was wrong, I'm sorry... you could use this code:
    Please Login or Register  to view this content.
    Regards,
    Antonio

  5. #5
    Registered User
    Join Date
    04-19-2013
    Location
    Delhi, India
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Need to get first cell value while using Filter option through Coding

    Great Solution!!!

    Thanks a ton Antonio...

+ 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