Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-29-2012, 08:33 AM
AbeLincolnVampSlayer AbeLincolnVampSlayer is offline Find replace issues!! Help!! Windows 7 64bit Find replace issues!! Help!! Office 2010 64bit
Novice
Find replace issues!! Help!!
 
Join Date: Jun 2012
Posts: 3
AbeLincolnVampSlayer is on a distinguished road
Exclamation 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
Reply With Quote
  #2  
Old 06-29-2012, 09:09 PM
macropod's Avatar
macropod macropod is offline Find replace issues!! Help!! Windows 7 64bit Find replace issues!! Help!! Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
  #3  
Old 07-02-2012, 07:22 AM
AbeLincolnVampSlayer AbeLincolnVampSlayer is offline Find replace issues!! Help!! Windows 7 64bit Find replace issues!! Help!! Office 2010 64bit
Novice
Find replace issues!! Help!!
 
Join Date: Jun 2012
Posts: 3
AbeLincolnVampSlayer is on a distinguished road
Default

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.
Attached Files
File Type: xls sampledata.xls (461.0 KB, 11 views)
Reply With Quote
  #4  
Old 07-02-2012, 05:36 PM
macropod's Avatar
macropod macropod is offline Find replace issues!! Help!! Windows 7 64bit Find replace issues!! Help!! Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
  #5  
Old 07-03-2012, 07:15 AM
AbeLincolnVampSlayer AbeLincolnVampSlayer is offline Find replace issues!! Help!! Windows 7 64bit Find replace issues!! Help!! Office 2010 64bit
Novice
Find replace issues!! Help!!
 
Join Date: Jun 2012
Posts: 3
AbeLincolnVampSlayer is on a distinguished road
Smile 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:
Originally Posted by macropod View Post
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
Reply With Quote
  #6  
Old 07-03-2012, 02:47 PM
macropod's Avatar
macropod macropod is offline Find replace issues!! Help!! Windows 7 64bit Find replace issues!! Help!! Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Find/Replace or VBA davidku Word 4 04-27-2012 04:39 PM
Find replace issues!! Help!! Bad view when using Find and Find & Replace - Word places found string on top line paulkaye Word 4 12-06-2011 11:05 PM
Find replace issues!! Help!! Is there a way to use "find/replace" to find italics words? slayda Word 3 09-14-2011 02:16 PM
Find replace issues!! Help!! Find and Replace kjxavier Word 9 08-11-2011 04:47 AM
Find replace issues!! Help!! Help with find and replace or query and replace shabbaranks Excel 4 03-19-2011 08:38 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:56 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft