+ Reply to Thread
Results 1 to 6 of 6

Macro to search for a value

Hybrid View

  1. #1
    Registered User
    Join Date
    10-06-2009
    Location
    Diemen, The Netherlands
    MS-Off Ver
    Excel 2007
    Posts
    87

    Macro to search for a value

    Hello Friends,

    I trying to make a macro that searches in column for a matching value of a specific cell.

    Thank you for any help offered.


    Greetings from Roberto, The Netherlands
    Attached Files Attached Files

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Macro to search for a value

    No need for a macro here simply use Conditional Formatting on A1 with a formula of:

    =MATCH(A1;D:D;0)
    set font to Red

  3. #3
    Registered User
    Join Date
    10-06-2009
    Location
    Diemen, The Netherlands
    MS-Off Ver
    Excel 2007
    Posts
    87

    Re: Macro to search for a value

    Hello DonkeyOte, thank you for your responding.

    The Excel attachement is just a simple example.
    I really need to use a macro for searching a specific values.


    Greetings, Roberto

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Macro to search for a value

    In which case I would advise posting a sample that reflects the complexities of your real requirements ... as things stand there is no justification for VBA, if you "need" VBA you will need to elaborate as to why as this will invariably affect the code logic.

  5. #5
    Registered User
    Join Date
    10-06-2009
    Location
    Diemen, The Netherlands
    MS-Off Ver
    Excel 2007
    Posts
    87

    Re: Macro to search for a value

    Hello DonkeyOte,

    I want to use a macro so I can let it run through multiple columns on different worksheets. This would work the best for me.

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Macro to search for a value

    Not trying to repeat myself but...

    ...I would advise posting a sample that reflects the complexities of your real requirements ...

+ 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