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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dileepkms
    New Member
    • Nov 2007
    • 2

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

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

    if we do it, can you send me the code
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #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

    Comment

    • dileepkms
      New Member
      • Nov 2007
      • 2

      #3
      Originally posted by gits
      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

      Comment

      • gits
        Recognized Expert Moderator Expert
        • May 2007
        • 5390

        #4
        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

        Comment

        Working...