VBA to disable Excel Clipboard

faizanmariner

New Member
Joined
Dec 31, 2021
Messages
7
Office Version
  1. 365
Platform
  1. Windows
Good Day to All, please help its very important

I have created form which have multiple sheet, I used VBA to force run macro, disable copy paste, disable right click, but still can copy from world and paste using excel clipboard, I need VBA to disable this excel clipboard or VBA so that if I copied from World I should not be able to paste in the form.
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
In ThisWorkbook,

VBA Code:
Private Sub Workbook_Activate()
  Application.CutCopyMode = False
End Sub
 
Upvote 0
thanks for reply....i got another VBA which undo......if the last command is copy...its working fine for me now
 
Upvote 0
thanks for reply....i got another VBA which undo......if the last command is copy...its working fine for me now
Glad you got it working.

I guess you are using the Worksheet_Change event to detect when data is pasted to the worksheet . If so, how do you distinguish between entering data with the keyboard and pasting data from outside excel ?
 
Upvote 0
Glad you got it working.

I guess you are using the Worksheet_Change event to detect when data is pasted to the worksheet . If so, how do you distinguish between entering data with the keyboard and pasting data from outside excel ?
i really do not know.......but I am using a number of VBA....one VBA has disable copy and paste within excel for clipboard, one VBA has disable ctr command, one VBA has disable right click, and the last one which can undo if the last command is copy.....so finally can not copy paste whitin excel, from other excel as well as non excel application also
 
Upvote 0

Forum statistics

Threads
1,214,923
Messages
6,122,283
Members
449,075
Latest member
staticfluids

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