![]() | Register | FAQ | Members | Social Groups | User Map | Calendar | Search | Today's Posts | Mark Forums Read |
Windows
Windows forum sponsored by |
| | | LinkBack | Thread Tools | Search Thread | Language |
| Sponsored Links |
| | #1 |
![]() Join Date: Apr 2007 Location: York
Posts: 79
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0 | Hi, I'm trying to write a macro to find a specific cell in Excel. I am typing the value into Cell B9 and want it to search from C15:C300. However, when i click search it highlights cell B9, which is logical as that is whats its looking for. The macro i have got so far is: Sub TESTING2() Cells.find(What:=Range("B9"), After:=ActiveCell, LookIn:=xlFormulas, LookAt _ :=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _ False, SearchFormat:=False).Activate Cells.FindNext(After:=ActiveCell).Activate End Sub I have tried changing the After section to After:=.Cells(15,3) but still the same. Any ideas? Thanks |
| |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to run a macro when you open the word document | My220x | Coding | 2 | 18-07-2008 01:43 PM |
| help with excel macro needed | oyoung | Windows | 0 | 30-03-2007 10:27 AM |
| Macro and VBA functions | randle | Windows | 10 | 09-02-2007 10:32 AM |
| Excel Macro - Edexcel GCE Exams | steve | Educational Software | 0 | 16-05-2006 02:49 PM |
| Macro Security | Ric_ | Windows | 4 | 04-10-2005 08:59 AM |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search Thread |
|
|





