r_simpson42
New Member
- Joined
- Sep 25, 2013
- Messages
- 8
One user (of many) receives the run-time error '1004': Paste method of Worksheet class failed
on the line "ActiveSheet.Paste" (see below for example macro)
I have many users here at work that use a whole slew of these types of macros as tickmarks in their Excel workpapers. They work for everyone, except one.
The macro is supposed to paste a small image (.png) into the excel worksheet.
Any ideas what could case this?
The macro is written in the below fashion in order to display the image on computers that do not have the macros and .png files installed on them.
Sub Senior_Ties_to_Prior_Year()
'
' Senior_Ties_to_Prior_Year Macro
'
'
ActiveSheet.Pictures.Insert("C:\Tick marks\Green Prior Year.png").Select
Selection.CopyPicture
Selection.Delete
ActiveSheet.Paste
ActiveCell.Select
End Sub
Thank you for your thoughts and suggestions!
on the line "ActiveSheet.Paste" (see below for example macro)
I have many users here at work that use a whole slew of these types of macros as tickmarks in their Excel workpapers. They work for everyone, except one.
The macro is supposed to paste a small image (.png) into the excel worksheet.
Any ideas what could case this?
The macro is written in the below fashion in order to display the image on computers that do not have the macros and .png files installed on them.
Sub Senior_Ties_to_Prior_Year()
'
' Senior_Ties_to_Prior_Year Macro
'
'
ActiveSheet.Pictures.Insert("C:\Tick marks\Green Prior Year.png").Select
Selection.CopyPicture
Selection.Delete
ActiveSheet.Paste
ActiveCell.Select
End Sub
Thank you for your thoughts and suggestions!