Paste special problem -value

zilch4ry

Board Regular
Joined
Feb 27, 2011
Messages
76
hi all,

I am creating an order spreadsheet which at one stage uses stock control. To produce the stock control i have used countif formulas and if formulas which identify whether or not the food is being ordered. as this will clear once the new order has been made, i have create a very simple macro which copies the cells and them pastes the special value, adding the deducted value into the main stock control worksheet. The problem i have is when i do this on the first 5 amounts the value is simple deducted, but on the other (around 20 cells) i recieve a formula pasted into the cell, which just keeps growing every time i use the macro; should this be happening?

example code of what is created after pasting special value, then adding the value:

=((((((((((((100+(Processing!L19-Processing!H38+IF(Processing!N10,-1,0)*Step1!H32+IF(Processing!N22,-0.5,0)*Order!G9+IF(Processing!N16,-0.5,0)*Order!G9))+(Processing!L19-Processing!H38+IF(Processing!N10,-1,0)*Step1!H32+IF(Processing!N22,-0.5,0)*Order!G9+IF(Processing!N16,-0.5,0)*Order!G9))+(Processing!L19-Processing!H38+IF(Processing!N10,-1,0)*Step1!H32+IF(Processing!N22,-0.5,0)*Order!G9+IF(Processing!N16,-0.5,0)*Order!G9))+(Processing!L19-Processing!H38+IF(Processing!N10,-1,0)*Step1!H32+IF(Processing!N22,-0.5,0)*Order!G9+IF(Processing!N16,-0.5,0)*Order!G9))+(Processing!L19-Processing!H38+IF(Processing!N10,-1,0)*Step1!H32+IF(Processing!N22,-0.5,0)*Order!G9+IF(Processing!N16,-0.5,0)*Order!G9))+(Processing!L19-Processing!H38+IF(Processing!N10,-1,0)*Step1!H32+IF(Processing!N22,-0.5,0)*Order!G9+IF(Processing!N16,-0.5,0)*Order!G9))+(Processing!L19-Processing!H38+IF(Processing!N10,-1,0)*Step1!H32+IF(Processing!N22,-0.5,0)*Order!G9+IF(Processing!N16,-0.5,0)*Order!G9))+(Processing!L19-Processing!H38+IF(Processing!N10,-1,0)*Step1!H32+IF(Processing!N22,-0.5,0)*Order!G9+IF(Processing!N16,-0.5,0)*Order!G9))+(Processing!L19-Processing!H38+IF(Processing!N10,-1,0)*Step1!H32+IF(Processing!N22,-0.5,0)*Order!G9+IF(Processing!N16,-0.5,0)*Order!G9))+(Processing!L19-Processing!H38+IF(Processing!N10,-1,0)*Step1!H32+IF(Processing!N22,-0.5,0)*Order!G9+IF(Processing!N16,-0.5,0)*Order!G9))+0)+0)+0

:confused:

Thanks in advance for any help given.
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

Forum statistics

Threads
1,224,522
Messages
6,179,297
Members
452,903
Latest member
Knuddeluff

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