By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,688 Members | 1,877 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,688 IT Pros & Developers. It's quick & easy.

can we disable copy and paste functionality for excel sheet using javascript?

P: 2
can we disable copy and paste functionality for excel sheet using javascript?

if we do it, can you send me the code
Nov 28 '07 #1
Share this Question
Share on Google+
3 Replies


gits
Expert Mod 5K+
P: 5,390
hi ...

welcome to TSDN ...

as far as i know you cannot use JavaScript for scripting something in an excel-application ... you only may use it with a browser. could you please describe the use-case that you have?

kind regards
Nov 28 '07 #2

P: 2
hi ...

welcome to TSDN ...

as far as i know you cannot use JavaScript for scripting something in an excel-application ... you only may use it with a browser. could you please describe the use-case that you have?

kind regards

in our task we are downloading data to excel sheet with all cells as protective except 5 cells which are editable, users are copying some data and paste it in the new sheet but we dont require this environment. so we want to restrict the code to disable copy functionality
Nov 28 '07 #3

gits
Expert Mod 5K+
P: 5,390
hmmm ... i guess the download uses a serverside script that writes the excel-file for the download ... may be you should investigate further at this point so the excel-writer could add some magic to disable copy&paste during the file-creation process ... as i said: you cannot do that with javascript

kind regards
Nov 28 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.