+ Reply to Thread
Results 1 to 7 of 7

Need Macro to find the active cell value on entire worksheet

Hybrid View

warriorpoet7176 Need Macro to find the active... 08-19-2016, 01:00 PM
kalbasiatka Re: Need Macro to find the... 08-19-2016, 01:15 PM
bebo021999 Re: Need Macro to find the... 08-19-2016, 01:17 PM
warriorpoet7176 Re: Need Macro to find the... 08-19-2016, 03:07 PM
JOHN H. DAVIS Re: Need Macro to find the... 08-19-2016, 03:19 PM
warriorpoet7176 Re: Need Macro to find the... 08-19-2016, 03:24 PM
JOHN H. DAVIS Re: Need Macro to find the... 08-19-2016, 03:31 PM
  1. #1
    Forum Contributor
    Join Date
    01-07-2014
    Location
    chandigarh
    MS-Off Ver
    Excel 2010
    Posts
    122

    Post Need Macro to find the active cell value on entire worksheet

    Hi Friend,
    Need your help once again
    I have a worksheet on which I have activated the feature of highlighting the duplicate text in red color, I want a macro to find the active cell's value on entire worksheet by clicking on the button.

    Thanks in Advance for your initiatives !!

  2. #2
    Forum Contributor kalbasiatka's Avatar
    Join Date
    02-27-2016
    Location
    Brest, Belarus
    MS-Off Ver
    2021
    Posts
    224

    Re: Need Macro to find the active cell value on entire worksheet

    literally
    Activesheet.Activecel.Value
    To do it for me and help me it is 2 different things!
    Sorry for my english, blame Google translator

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,659

    Re: Need Macro to find the active cell value on entire worksheet

    This will pop-up a message of active cell value by clicking in a Macro-assigned button:

    Sub ActCell()
    MsgBox activeCell.Value
    End Sub
    Last edited by bebo021999; 08-19-2016 at 01:19 PM.
    Quang PT

  4. #4
    Forum Contributor
    Join Date
    01-07-2014
    Location
    chandigarh
    MS-Off Ver
    Excel 2010
    Posts
    122

    Re: Need Macro to find the active cell value on entire worksheet

    I am sorry, didn't get,

    Would this find and navigate me to the cell where active cells data is available

    I am looking for solution that when clicked on button than I am active cells text is picked and entire excel is searched for that particular text & I am navigated to that cell immediately.



    Thanks & Regards

  5. #5
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Need Macro to find the active cell value on entire worksheet

    Does this help?

    Sub warriorpoet7176()
    Dim rcell As Range, x As String
    x = ActiveCell.Value
    For Each rcell In ActiveSheet.UsedRange
        If rcell = x Then
            rcell.Select
            MsgBox "Value Found Here"
        End If
    Next rcell
        
    End Sub

  6. #6
    Forum Contributor
    Join Date
    01-07-2014
    Location
    chandigarh
    MS-Off Ver
    Excel 2010
    Posts
    122

    Re: Need Macro to find the active cell value on entire worksheet

    Quote Originally Posted by JOHN H. DAVIS View Post
    Does this help?

    Sub warriorpoet7176()
    Dim rcell As Range, x As String
    x = ActiveCell.Value
    For Each rcell In ActiveSheet.UsedRange
        If rcell = x Then
            rcell.Select
            MsgBox "Value Found Here"
        End If
    Next rcell
        
    End Sub
    Hi John,
    Thanks for the quick reply but how do I need to put it in commandbutton, I want it should work only when clicked on the button.

    Please direct me with little more clarity

  7. #7
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Need Macro to find the active cell value on entire worksheet


+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Highlight entire row of active cell (can not install a macro!)
    By sami770 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-07-2016, 07:58 AM
  2. Replies: 3
    Last Post: 07-16-2015, 09:29 AM
  3. Replies: 3
    Last Post: 10-31-2013, 03:41 PM
  4. Macro to copy entire active row to another worksheet and another workbook
    By SalesGuy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-27-2011, 10:38 AM
  5. copy active cell value,find the pasted value in different worksheet
    By tomaz.vouk@gmail.com in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-10-2006, 03:29 AM
  6. [SOLVED] how to scroll through active cells instead of entire worksheet
    By mark smith in forum Excel General
    Replies: 2
    Last Post: 03-12-2006, 10:35 PM
  7. how do find out the column of the active cell in a macro?
    By Neill Lee in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-20-2005, 05:06 PM

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