+ Reply to Thread
Results 1 to 6 of 6

Thread: Force Manual Entry / Prevent Pasting

  1. #1
    Registered User
    Join Date
    12-19-2011
    Location
    exroth specialists,
    MS-Off Ver
    Excel 2007
    Posts
    46

    Force Manual Entry / Prevent Pasting

    Hi all

    I would need know whether I can for a manual entry into a cell. (i.e. prevent users from pasting values into it).
    The thing is that they usually copy an entire line (let's sa columns A:BI) - but they ususally forget to update one particular field (column E)
    so, what i need is, that if they paste the values to the new row all fields (A to D and F to BI) are filled in, but column E remains empty and requires a manual data entry?

    Can this be done?

    Thx a lot

  2. #2
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel 2007
    Posts
    825

    Re: Force Manual Entry / Prevent Pasting

    maybe this?
    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    If MsgBox("Did you update ...Column E?", vbYesNo + vbQuestion, "Warning!") = vbYes Then
    'your code here
    
    
    Else
     ' Do nothing
         
    End If
    End Sub
    Regards, John

  3. #3
    Registered User
    Join Date
    12-19-2011
    Location
    exroth specialists,
    MS-Off Ver
    Excel 2007
    Posts
    46

    Re: Force Manual Entry / Prevent Pasting

    Hi John

    This only works if you paste the value directly, but not if it's included in a range

    I'd prefer the option that if a range is pasted it simply skips the cell of column e.
    (I have other checks in place to ensure that all mandatory fields of the file are completed - so your message box is not helpful for me)

    But thank you for your efforts anyway

  4. #4
    Valued Forum Contributor Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens Greece
    MS-Off Ver
    Excel 2003
    Posts
    2,300

    Re: Force Manual Entry / Prevent Pasting

    Hi

    If i understand well your point, then..


    You can also do it, using Custom Validation, to force the users to fill first column E, or else they can not fiil enywhere else.


    Note: This is not working for copy-paste.
    Last edited by Fotis1991; 01-25-2012 at 05:45 AM. Reason: Note
    Regards

    Fotis.

    I am proud that i am Greek.

    Just to know every one.We Greeks, we are nοt proud of our politicians. Υou?

    Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.


    My Avadar picture, is from Athens Acropolis.
    http://www.theacropolismuseum.gr

    http://www.visitgreece.gr/

  5. #5
    Registered User
    Join Date
    12-19-2011
    Location
    exroth specialists,
    MS-Off Ver
    Excel 2007
    Posts
    46

    Re: Force Manual Entry / Prevent Pasting

    Fotis

    As pointed out, I do not want people to able to past values into the cell.
    All other cells yes, but it should always require a manual entry for the cell in column E

    Let's say they copy row 11 to row 12
    --> then i want all values copies, apart from the value in column e
    Last edited by FallingDown; 01-25-2012 at 11:31 AM.

  6. #6
    Registered User
    Join Date
    12-19-2011
    Location
    exroth specialists,
    MS-Off Ver
    Excel 2007
    Posts
    46

    Re: Force Manual Entry / Prevent Pasting

    Hi all

    Anybody got an idea how this could be achieved?

    Thx

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.2.0