Copy Worksheets

AC12

New Member
Joined
Dec 6, 2011
Messages
6
Seems this should be easy, but I need some help. Two VBA statements. First sends execution to a function in the module, though it should only clear a range. IF I comment that out, second statement sends execution to a different function in the module. What can I be doing wrong?

Sub CopyMySheet()
'Worksheets("TempServe").Range("A1:A500").ClearContents
Worksheets("ProvidedServices").Range("A1:A500").Copy Worksheets("TempServe").Range("A1:A500")

End Sub


Thanks for your help
 
Oh, Norie, I liked your suggestion, too. And it helped, but then I changed the code -- my efforts to simplify it and it no longer helped. But, I think I do need your application.calculation statements. Ok, now I've put the calculation statements in and the code works as I would expect it to. Thank you Norie, Trevor and My Answer is This. I think I learned a valuable lesson about leaving calculated fields in my data sheets.
 
Upvote 0

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