Consulting

Results 1 to 5 of 5

Thread: Userform Read only to Read/Write

  1. #1
    VBAX Newbie
    Joined
    Sep 2018
    Posts
    3
    Location

    Userform Read only to Read/Write

    I am trying to have a series of userforms that will allow users to view the information in our database. I have a button that changes from read only to read/write but it closes the userform. How do i stop it from closing the userform?

  2. #2
    VBAX Expert Logit's Avatar
    Joined
    Sep 2016
    Posts
    613
    Location
    .
    Post your code.

    Please utilize the # from the above menu.

  3. #3
    VBAX Newbie
    Joined
    Sep 2018
    Posts
    3
    Location
    Private Sub Rite_Click()
    
    
    
     ActiveWorkbook.ChangeFileAccess Mode:=xlReadWrite
    
    
     Home.NewJob.Enabled = True
     Home.NewWO.Enabled = True
     Home.Manage.Enabled = True
     Home.Rite.Visible = False
     Home.Reed.Visible = True
    
    
    
    
     End Sub

  4. #4
    VBAX Expert Logit's Avatar
    Joined
    Sep 2016
    Posts
    613
    Location
    .
    I don't see anything that would open or close a userform.

  5. #5
    VBAX Newbie
    Joined
    Sep 2018
    Posts
    3
    Location
    This is the code for the button to switch from Read only to Read Write. As soon as it executes it shuts the user from and opens the workbook.

Posting Permissions

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