#1
|
|||
|
|||
Find replace issues!! Help!!
Okay so I have massive spreadsheets that have iferror statements in them to eliminate N/A errors in my sheet. Certain information shifts to different dates on different months. I used to do a find replace all in 2003 and I would hold down escape whenever it hit errors for the day that was missing info for that month. Now in 2010 as soon as I hit an error the search stops. I am dealing with 3200 cells and 1/4th of them will error depending on what day is missing info. Advice please |
#2
|
||||
|
||||
Without the code and some sample data (including data you're having problems with), you can't realistically expect anyone to be able to help.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
Okay here is my data where month directory is \0412 in all cells I want to replace all with \0512.
So I do a find replace all to have it cycle through. When there is an error in 2003 excell keeps looking you can hold down escape and it will go through the whole thing ignoring the errors. In excell 2010 it stops as soon as it finds missing data. With 3000 plus cells per sheet this would take me all day to restart the find replace every time data is missing for a day. |
#4
|
||||
|
||||
Try the following macro:
Code:
Sub UpdateRefs() Dim StrFnd As String, StrRep As String StrFnd = InputBox("Please input the string to FIND for the replacement.", "Find/Replace") If StrFnd = "" Then Exit Sub StrRep = InputBox("Please input the string with which to REPLACE the Find String.", "Find/Replace") With Application .DisplayAlerts = False .ScreenUpdating = False .Calculation = xlManual .ActiveSheet.Cells.Replace What:=StrFnd, Replacement:=StrRep, LookAt:=xlPart, _ SearchOrder:=xlByColumns, MatchCase:=False, SearchFormat:=False, ReplaceFormat:=False .Calculation = xlAutomatic .DisplayAlerts = True .ScreenUpdating = True End With End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
|||
|
|||
Worked!! Thank you
Wow I have a feeling I am behind the times on doing stuff the easy way in excell. I do not know a lot about macros, is there any book or training you could recomend that would get me up to speed?
Thanks a lot!! Quote:
|
#6
|
||||
|
||||
Glad it worked for you.
I don't know of any particular Excel books (I've never bought one) - I've never done any formal programming study and I only dabble in Excel.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Using Find/Replace or VBA | davidku | Word | 4 | 04-27-2012 04:39 PM |
Bad view when using Find and Find & Replace - Word places found string on top line | paulkaye | Word | 4 | 12-06-2011 11:05 PM |
Is there a way to use "find/replace" to find italics words? | slayda | Word | 3 | 09-14-2011 02:16 PM |
Find and Replace | kjxavier | Word | 9 | 08-11-2011 04:47 AM |
Help with find and replace or query and replace | shabbaranks | Excel | 4 | 03-19-2011 08:38 AM |