Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I've got some code that sort of works but has some bugs.
I've got a spreadsheet with some pricing in it. I've set up a cell to search the product code which works although if the value is not found it returns Error 91. Private Sub Worksheet_Change(ByVal Target As Range) If Target.Address < "$B$3" Then Exit Sub Columns(1).Find(Target).Select On Error Resume Next End Sub I'd like the cell it goes to, to be highlighted to draw the users attention to it. I've got this code which works if I click on the cell but not through the search function. Public OldRng As Range Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Not OldRng Is Nothing Then OldRng.Interior.ColorIndex = xlNone End If Target.Interior.ColorIndex = 6 Set OldRng = Target End Sub Any help would be appreciated |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Seo , Search Engine Optimizer , Seo Search engine Optimization , search engine optimization services, SEO Consulting | Setting up and Configuration of Excel | |||
Seo , Search Engine Optimizer , Seo Search engine Optimization , search engine optimization services, SEO Consulting | Charts and Charting in Excel | |||
How do I search excel spreadsheets using multiple search criteria. | Excel Worksheet Functions | |||
Highlight cells with ctrl-click but only un-highlight one cell | Excel Discussion (Misc queries) | |||
Search should highlight entire row in Excell in red | Excel Discussion (Misc queries) |