copy paste fail

  • Thread starter Thread starter rumkus
  • Start date Start date
R

rumkus

I don't know what causes this but sometimes "paste" option on the
right click is greyed.
Not always but it is very irritating. There are several macros
belonging to workbook. Can they be the reason ?
How can i make "paste" option functional again.
Any help ?
 
Found it, trimming the code behind the sheet i want to paste to:


Private Sub Worksheet_Activate() <----------------------------No good
With ActiveWindow
.DisplayGridlines = False
.DisplayHeadings = False
End With
Application.Goto Reference:=Cells(1, 1), Scroll:=True
ActiveSheet.Cells(2, 1).Select
End Sub


Private Sub Worksheet_Activate() <................................Good
Application.Goto Reference:=Cells(1, 1), Scroll:=True
ActiveSheet.Cells(2, 1).Select
End Sub

God knows why though.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top