Paste not working

shawleigh17

Board Regular
Joined
Nov 16, 2007
Messages
79
The code below worked fine up until about 5 minutes ago. I didn't change anything on the page, so I have no idea what caused this to start failing, but When I try to ActiveSheet.Paste, I get an error saying that I can not paste. ANy suggestions?
Code:
    Workbooks(filename).Activate
    Sheets("Analyze_Layout").Unprotect ("XXXXXX")
    Sheets("Analyze_Layout").Visible = True
    
    Sheets("Print_Layout").Visible = xlVeryHidden
    
    Workbooks(filename).Activate
    Sheets("Layout_Manager").Select
    Application.Goto Reference:="Layout_Manager"
    Selection.Copy
    Sheets("Analyze_Layout").Select
    Application.Goto Reference:="Layout_Manager"
    ActiveSheet.Paste
 
Last edited:

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
After running the code step by step, just prior to the activesheet.paste, I instead went to the sheet and pasted it myself. Excel immediately crashes, and restarts. I have no idea why this is happening, and it was working fine just a while ago. Any help?
 
Upvote 0

Forum statistics

Threads
1,214,908
Messages
6,122,187
Members
449,071
Latest member
cdnMech

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top