Special copy and paste from one sheet to another

Choust

New Member
Joined
Jul 7, 2009
Messages
18
This is a macro i have been using to update update information from one sheet to the next empty row in another sheet within the same workbook.

Sheet2.Unprotect Password:="Climber7c+"
With Sheets("FeedbackForm").Range("B7:N8")
.Copy Destination:=Sheets("Feedback & Performance").Range("A" & Rows.Count).End(xlUp).Offset(1)
.ClearContents
Sheet2.Protect Password:="Climber7c+"

The problem is i don't want to copy the formating, cell protection properties and comments, just the values with in the cells.

Can anyone help me alter my code to perform this?

Thanks,
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
try this...

Code:
Sheet2.Unprotect Password:="Climber7c+"
With Sheets("FeedbackForm").Range("B7:N8")
.Copy 
 Sheets("Feedback & Performance").Range("A" & Rows.Count).End(xlUp).Offset(1).PasteSpecial Paste:=xlPasteValues
.ClearContents
Sheet2.Protect Password:="Climber7c+"
 
Upvote 0
That didn't work. I tried quite a few different variations using the .pastespecial command and most of them return either a syntax error or an application runtime error...

Any other suggestions...
Thanks,
 
Upvote 0
where is the syntax error?

there wasn't any End With in your original post...i assume this is just part of your overall code?

if you just run this code does this work?

Code:
Sub cp()
With Sheets("FeedbackForm").Range("B7:N8")
.Copy
 Sheets("Feedback & Performance").Range("A" & Rows.Count).End(xlUp).Offset(1).PasteSpecial Paste:=xlPasteValues
.ClearContents
End With
End Sub
 
Upvote 0
so you ran just that sub and got an error?
did it highlight a line?
double check your sheet names and make sure they are the same as what is in the code
 
Upvote 0
Yep, just that sub, same sheet names, no protection on the workbook and still the same error....
 
Upvote 0
Ok i think i may have realised why it is not working....
How do i copy the cell values and also the formating but not the comments?

Thanks for your replies.
 
Upvote 0

Forum statistics

Threads
1,215,575
Messages
6,125,619
Members
449,238
Latest member
wcbyers

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