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,
 
if you are talking about number formats then replace

Code:
xlPasteValues
with

Code:
xlPasteValuesAndNumberFormats
 
Upvote 0

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
glad you got it working...

remember you can use the macro recorder to help figure out syntax, etc...
but realize the macro recorder doesn't always give the most efficient code...but its a good tool if you can't remember what syntax is needed...
 
Upvote 0
Yeah it doesn't always provide you with the code you want. Correct me if i'm wrong but with the Macro recorder you can perform actions like copy and pasting to the next empty row in a sheet?
 
Upvote 0
the macro recorder just takes each individual action as a seperate statement...there are normally much better ways to write the code...that's why i said i mainly use it for finding out proper syntaxk, etc not for program flow...
 
Upvote 0

Forum statistics

Threads
1,216,115
Messages
6,128,923
Members
449,479
Latest member
nana abanyin

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