I am not a macro coder or a MAC user. It is my wife's MAC. I can edit the VB code a bit but that is about it. I am using an excel sheet with recorded macros on a MAC computer. The macros were recorded on a PC and I have run a similar spreadsheet on the MAC with no problem. The macro has been updated a bit since it was last run on the mac but the instruction that is hanging things up is one that has run before. It is a search and replace instruction and what is being searched for and replaced has changed slightly but not significantly. See code below:[TABLE="width: 352"]
<colgroup><col width="469" style="width: 352pt; mso-width-source: userset; mso-width-alt: 17152;"> <tbody>[TR]
[TD="width: 469, bgcolor: transparent"] Range("C2").Select[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"] Range(Selection, Selection.End(xlDown)).Select[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"] Selection.Copy[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"] Range("D2").Select[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"] ActiveSheet.Paste[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: yellow"] Selection.Replace What:="am", Replacement:=" AM", LookAt:=xlPart, _[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: yellow"] SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: yellow"] ReplaceFormat:=False[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"] Selection.Replace What:="pm", Replacement:=" PM", LookAt:=xlPart, _[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"] SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"] ReplaceFormat:=False The highlighted code is where the macro hangs. Can anyone help? Thank you.[/TD]
[/TR]
</tbody>[/TABLE]
<colgroup><col width="469" style="width: 352pt; mso-width-source: userset; mso-width-alt: 17152;"> <tbody>[TR]
[TD="width: 469, bgcolor: transparent"] Range("C2").Select[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"] Range(Selection, Selection.End(xlDown)).Select[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"] Selection.Copy[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"] Range("D2").Select[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"] ActiveSheet.Paste[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: yellow"] Selection.Replace What:="am", Replacement:=" AM", LookAt:=xlPart, _[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: yellow"] SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: yellow"] ReplaceFormat:=False[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"] Selection.Replace What:="pm", Replacement:=" PM", LookAt:=xlPart, _[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"] SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"] ReplaceFormat:=False The highlighted code is where the macro hangs. Can anyone help? Thank you.[/TD]
[/TR]
</tbody>[/TABLE]