I'm new to the macro world of excel. I program industrial machine code. I want to search my code for a word, such as containing "CYCLE". When found, I want to highlight the prior cell. Thanks.
I'm new to the macro world of excel. I program industrial machine code. I want to search my code for a word, such as containing "CYCLE". When found, I want to highlight the prior cell. Thanks.
Hi, try this:
![]()
Please Login or Register to view this content.
Try this
![]()
Please Login or Register to view this content.
Last edited by davesexcel; 04-14-2013 at 02:08 PM.
Thanks, That succeeded in highlighting the word searched, but not the cell prior to the word searched.
Who are you responding to?
I get this solution to work, but it doesn't highlight the cell prior to the search result like I was wanting
J4cub This worked but doesn't highlight the prior cell.
Davesexcel. I get an error at line one.
I hope J4club is not offended if I butt in
By prior if you mean on the top of the searched item
Change this line of the code
INTO![]()
Please Login or Register to view this content.
By prior if you mean to the left of searched item![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
AB33, That worked. Thanks. One other question. What do I need to change to make it search for lines that contains the word selected. Not an exact match.
INTO![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks