PasteSpecial - Formulas

James_Latimer

Active Member
Joined
Jan 20, 2009
Messages
415
Excel 2003,
Hi, i am not making any excuses but i am fairly new to this!!

I am creating a routine that will 'Restore Parameter Settings' on a workbook.

Basically i have a worksheet with the standard data on it and i am copying and pasting formulas back onto each individual worksheet.

All is working fine except for one section.....

Sheets("StandardSettings").Range("E16:H16").Copy
Sheets("Paroxysmal CNHD Patients").Range("L77").PasteSpecial Paste:=xlPasteFormula


It will do the copy okay but it failr with a 1004 error on the paste line.

I know that i am not writting the code correctly but i have had a look around and i cant see what i should be putting.

Any assistance would be much appreciated.
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
This is so easily done and difficult to spot. Here's a hint: in VBA most (but not all) keywords have some letters in capitals. In the VBE type then all in lower case - when you press Enter at the end of a line the editor will capitalise them if they are recognised keywords.
 
Upvote 0

Forum statistics

Threads
1,215,544
Messages
6,125,438
Members
449,225
Latest member
mparcado

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