I copy some cells from one worksheet manually using the ctrl + c command and want to paste it using a macro I created.
I have the following code:
Range("A2:W5000").Select
Selection.ClearContents
Range("A2").Select
ActiveSheet.Paste
With Selection.Interior
.PatternColorIndex = 7
.ThemeColor = xlThemeColorAccent2
.TintAndShade = 0.799981688894314
.PatternTintAndShade = 0
End With
Range("A2").Select
This macro runs just fine on my machine, but for some reason, I get an error with the ActiveSheet.Paste
when running the exact same macro on another PC.
Any ideas on why this could be happening?
Thank you in advance for any suggestions.