Results 1 to 2 of 2

Thread: Excel---not allow cutting?

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2003
    Posts
    2

    Excel---not allow cutting?

    Hi,

    I was just trying to figure out....

    How can I NOT allow a user of my worksheet to cut and paste from cells without locking them.

    I would like them to be able to input or delete from the cells but not CUT since it will mess up other formulas that apply to the cells.

    Thanks,
    H Turner

  2. #2
    Frenzied Member Spajeoly's Avatar
    Join Date
    Mar 2003
    Location
    Utah
    Posts
    1,068
    I use this method for when I use cells as buttons(Which I always do).

    In your Worksheet_SelectionChange sub just check to see if the cells you want have what you want in them and if not? Make it so.

    Here's a small example:

    VB Code:
    1. Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    2.     If Range("$C$3").FormulaR1C1 = "Weekly stats" = False Then
    3.         Range("$C$3").FormulaR1C1 = "Weekly Stats"
    4.         Range("$C$3").Interior.Color = vbGreen
    5.         Range("$C$3").Font.Bold = True
    6.     End If
    7. End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width