Copy/Paste and Events problem

Des

New Member
Joined
Apr 23, 2005
Messages
7
To use copy/paste I have to turn off Events. On all my workbooks that have events, I have to include a button, "Events off/on". Its a pain.
This is not a new problem I am having but I'm wondering if it is just a feature of Excel and I have to put up with it.
Help appreciated.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
As long as you do not have anything special in your workbook, you do not have to switch events Off/ON

If there is such requirement - insert in your copying procedure switching off and on, like:

Code:
'code of your copying begins here
application.enableevents = false
'real copying code, which would trigger events if not disabled goes here
application.enableevents = true
'the end of copying procedure, or other instructions, which will not trigger any events
 
Upvote 0
As long as you do not have anything special in your workbook, you do not have to switch events Off/ON

If there is such requirement - insert in your copying procedure switching off and on, like:

Code:
'code of your copying begins here
application.enableevents = false
'real copying code, which would trigger events if not disabled goes here
application.enableevents = true
'the end of copying procedure, or other instructions, which will not trigger any events

Thanks, but it is not vba copy/paste code, its just the normal copy paste while using the worksheet.
 
Upvote 0

Forum statistics

Threads
1,216,503
Messages
6,131,020
Members
449,615
Latest member
Nic0la

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