Thanks for the replies and the advice!
I’ll embed some of the macro coding below for your review. I’ll definitely add this screenupdating/calculation code to each of my macros:
Sub (Your Macro Name)
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
(place your code here)
Application.ScreenUpdating = True
Application.Calculation = xlCalculationAutomatic
End Sub
I’ll have to check the hardware properties of the target machine next time I’m out there. I know that there are no other macros/events running in Excel, though checking the priority is an excellent idea….thanks. The delay does occur during processing. I’m pretty sure that page break view is off, but I’ll check that too.
Find/Replace Macro (I’ve pasted only one piece of the code as there are hundreds of similar entries):
Sub FindReplace()
'
' FindReplace Macro
' Macro recorded 3/13/2007 by Me
'
' Keyboard Shortcut: Ctrl+f
'
Columns("A:A").Select
Selection.Replace What:="Apple", Replacement:="Red Delicious Apple”, LookAt:= _
xlPart, SearchOrder:=xlByColumns, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
Selection.Replace What:="Orange", Replacement:="Tangerine”, LookAt _
:=xlPart, SearchOrder:=xlByColumns, MatchCase:=False, SearchFormat:= _
False, ReplaceFormat:=False
Selection.Replace What:="Red Grpaes", Replacement:="Red Grapes”, LookAt:= _
xlPart, SearchOrder:=xlByColumns, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
Location Macro:
Sub SeparateState()
'
' SeparateState Macro
' Macro recorded 8/24/2007 by Me
'
' Keyboard Shortcut: Ctrl+l
'
Columns("I:I").Select
Selection.Insert Shift:=xlToRight
Range("I2").Select
ActiveCell.FormulaR1C1 = "=RIGHT(RC[1],2)"
Range("I2").Select
Selection.AutoFill Destination:=Range("I2:I65536")
Range("I2:I65536").Select
Columns("I:I").Select
Selection.Insert Shift:=xlToRight
Columns("J:J").Select
Selection.Copy
Columns("I:I").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("I1").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = "State"
With ActiveCell.Characters(Start:=1, Length:=5).Font
.Name = "Arial"
.FontStyle = "Bold"
.Size = 9
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = 1
End With
Columns("I:I").Select
Columns("I:I").EntireColumn.AutoFit
Columns("J:J").Select
Selection.Delete Shift:=xlToLeft
End Sub
Split Cells Macro:
Sub SplitCells()
'
' SplitCells Macro
' Macro recorded 6/4/2007 by Me
'
' Keyboard Shortcut: Ctrl+s
'
Columns("B:B").Select
Selection.Insert Shift:=xlToRight
Selection.Insert Shift:=xlToRight
Selection.Insert Shift:=xlToRight
Selection.Insert Shift:=xlToRight
Selection.Insert Shift:=xlToRight
Selection.Insert Shift:=xlToRight
Selection.Insert Shift:=xlToRight
Range("B2").Select
ActiveCell.FormulaR1C1 = "=TRIM(MID(RC[-1],SEARCH("" "",RC[-1])+1,255))"
Range("C2").Select
ActiveCell.FormulaR1C1 = "=TRIM(MID(RC[-1],SEARCH("" "",RC[-1])+1,255))"
Range("D2").Select
ActiveCell.FormulaR1C1 = "=TRIM(MID(RC[-1],SEARCH("" "",RC[-1])+1,255))"
Range("E2").Select
ActiveCell.FormulaR1C1 = "=LEFT(RC[-4],(SEARCH("" "",RC[-4])-1))"
Range("F2").Select
ActiveCell.FormulaR1C1 = "=LEFT(RC[-4],(SEARCH("" "",RC[-4])-1))"
Range("G2").Select
ActiveCell.FormulaR1C1 = _
"=IF(ISERROR(SEARCH("" "",RC[-4])-1),RC[-4],LEFT(RC[-4],SEARCH("" "",RC[-4])-1))"
Range("H2").Select
ActiveCell.FormulaR1C1 = _
"=IF(ISERROR(TRIM(MID(RC[-5],SEARCH("" "",RC[-5])+1,255))),"" "",TRIM(MID(RC[-5],SEARCH("" "",RC[-5])+1,255)))"
Range("B2:H2").Select
Range("H2").Activate
ActiveWindow.SmallScroll ToRight:=3
Selection.AutoFill Destination:=Range("B2:H65536")
Range("B2:H65536").Select
Columns("A:D").Select
Range("D1").Activate
Selection.EntireColumn.Hidden = True
Range("E1").Select
ActiveCell.FormulaR1C1 = "Year"
Range("F1").Select
ActiveCell.FormulaR1C1 = "Make"
Range("G1").Select
ActiveCell.FormulaR1C1 = "Model"
Range("H1").Select
ActiveCell.FormulaR1C1 = "Model-other"
Range("I1").Select
End Sub
Paste Values Macro:
Sub PasteValues()
'
' PasteValues Macro
' Macro recorded 4/27/2007 by Me
'
' Keyboard Shortcut: Ctrl+p
'
Columns("I:I").Select
Selection.Insert Shift:=xlToRight
Selection.Insert Shift:=xlToRight
Selection.Insert Shift:=xlToRight
Selection.Insert Shift:=xlToRight
Columns("E:E").Select
Selection.Copy
Columns("I:I").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Columns("F:F").Select
Application.CutCopyMode = False
Selection.Copy
Columns("J:J").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
ActiveWindow.SmallScroll ToRight:=-1
Columns("G:G").Select
Application.CutCopyMode = False
Selection.Copy
Columns("K:K").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Columns("H:H").Select
Application.CutCopyMode = False
Selection.Copy
Columns("L:L").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
ActiveWindow.SmallScroll ToRight:=-5
Columns("E:H").Select
Range("H1").Activate
Selection.EntireColumn.Hidden = True
End Sub
New Sheets Macro:
Sub NewSheets()
'
' NewSheets Macro
' Macro recorded 7/10/2007 by Me
'
' Keyboard Shortcut: Ctrl+n
'
Range("I1").Select
Range(Selection, Selection.End(xlDown)).Select
Range(Selection, Selection.End(xlToRight)).Select
Selection.Copy
Sheets.Add
ActiveSheet.Paste
Range("A1").Select
End Sub
Whew! If you’ve read through all that….Thanks!!!! Any thoughts would be appreciated.
Bookmarks