+ Reply to Thread
Results 1 to 5 of 5

Multiple Data Validation Checks

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    10-07-2011
    Location
    Plano, TX USA
    MS-Off Ver
    Excel 2013
    Posts
    141

    Re: Multiple Data Validation Checks

    Thanks Steffen.
    I thought of doing that and it will work but isn't it "after the fact"? The user has already made a change. How do I put the changed value back to it's original (previous) value after the pop up message?

    Is there a way to check before the value is changed? If not, I can use your solution but still nedd to know how to restore the previous value.


    Private Sub worksheet_selectionChange(byval target as range)
       if target.column = 6 ' change to fit
            ' here you create the check if the user has rights
            if not you_user_id_var = "Finance" then
                   msgbox("You do not have rights to change this column")
                   range("A1").select
    
    'NEED TO RESTORE THE PREVIOUS VALUE HERE
    
           end if
       end if
    end sub
    Jim
    Last edited by stubbsj; 07-01-2012 at 01:19 PM. Reason: add additional information

+ 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.6.0 RC 1