Can not paste to a New spreadsheet

rthorne

New Member
Joined
Oct 7, 2010
Messages
17
running Excel 2007. Suddenly, I can not paste from Spreadsheeet1 to a new spreadsheet. No error is given. and copy does go to the clipboard. The Paste button on New SPreadsheet will let me choose actions, but pasting appears.

Appreciate your help:(
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Hmm. It could be because of a macro you have..
Is there any Worksheet_Activate event or anything that has to do with a worksheet event?
If so, could you post the code?
 
Upvote 0
I grabbed the code from a post here.

http://www.mrexcel.com/forum/showthread.php?t=384758&highlight=Cmpare

I just changed the columns to review for dupes.

Sub Cmpare()
Dim ws1 As Worksheet, ws2 As Worksheet, ws3 As Worksheet
Dim i As Long, j As Long, LR As Long
Set ws1 = Sheets("Sheet1")
Set ws2 = Sheets("Sheet2")
Set ws3 = Sheets.Add
With ws1
LR = .Range("E" & Rows.Count).End(xlUp).Row
For i = LR To 1 Step -1
If IsNumeric(Application.Match(.Range("E" & i).Value, ws2.Columns("A"), 0)) Then
j = j + 1
.Rows(i).Copy Destination:=ws3.Range("A" & j)
.Rows(i).Delete
End If
Next i
End With
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,831
Members
452,946
Latest member
JoseDavid

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