VBA Application.calculate is pasting stored data

danpetersen2007

New Member
Joined
Jun 7, 2013
Messages
11
Hey Guys - Looking for some help. I have a macro that works on multiple users machines except for one and can't figure out if there is a special setting in excel or in vba that got triggered on his machine.
  • I run my code that calculates sheet1
  • Copies sheet1 as values to a new sheet2
  • Then run more calculation code on sheet1
  • Copies that new calculation as values to a new sheet3
  • Then i create a fourth sheet (sheet4) where I paste in the formulas to take the average of sheet 1 and 2. The code runs in manual calculation mode until the end of the code where I run application.calculate to calculate the average formulas on sheet4.
On his machine when I run the application.calculate it looks like it is pasting stored values into Sheet3 randomly. I have tested the code to stop at the final Application.calculate procedure and manually click calculate in excel and it works.

I have tried putting in application.cutcopymode=false prior to the application.calculate procedure to clear stored memory, but that didn't work.

Can you think of any reason why application.calculate would trigger a copy/paste as values?
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Forum statistics

Threads
1,214,983
Messages
6,122,582
Members
449,089
Latest member
Motoracer88

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