Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi there,
I'm working on a macro to find items within my database. I found the code below in the help files, but can't get it working in my worksheet. I have a feeling that this has something to do with the variable (c) not being defined - at least that's what the pop up in VB tells me. How do I define this? Also I want to change the code a little to lookin another worksheet. Is this do-able with this code or is there a simpler way?? With Worksheets(1).Range("a1:a500") Set c = .Find(2, LookIn:=xlValues) If Not c Is Nothing Then firstAddress = c.Address Do c.Interior.Pattern = xlPatternGray50 Set c = .FindNext(c) Loop While Not c Is Nothing And c.Address < firstAddress End If End With Cheers, Sue |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro-find and sum | Excel Discussion (Misc queries) | |||
find max value in macro | Excel Discussion (Misc queries) | |||
Get Macro warning, but can't find Macro | Excel Worksheet Functions | |||
Cannot find macro | New Users to Excel | |||
Can't find macro | Excel Worksheet Functions |