Results 1 to 4 of 4

I am trying to create individual passwords for multiple sheets in an excel workbook

Threaded View

inalegs I am trying to create... 12-22-2014, 07:34 PM
daffodil11 Re: I am trying to create... 12-22-2014, 08:39 PM
inalegs Re: I am trying to create... 12-22-2014, 09:04 PM
daffodil11 Re: I am trying to create... 12-22-2014, 09:14 PM
  1. #1
    Registered User
    Join Date
    12-22-2014
    Location
    stockport,england
    MS-Off Ver
    MS office 2010
    Posts
    2

    I am trying to create individual passwords for multiple sheets in an excel workbook

    I am trying to create individual passwords for multiple sheets in an excel workbook. I have successfully passworded the mastersheet but am struggling to password the individual worksheets. Please help this is where i am at:

    Private Sub CommandButton1_Click()
    
    If Me.TextBox1.Value = "master" Then
    
    Unload Me
    
    Sheets("Sheet4").Visible = True
    
    Sheets("Sheet5").Visible = True
    
    Sheets("Sheet1").Select
    
    Else
    
    If Me.TextBox1.Value = "derby" Then
    
    Unload Me
    
    Sheets("Sheet6").Visible = True
    
    Sheets("Sheet7").Visible = True
    
    Sheets("Sheet1").Select
    
    Else
    
     
    
    Me.Hide
    
    Retry = MsgBox("The password is incorrect. Do you wish to try again?", vbYesNo, "Retry?")
    
    Select Case Retry
    
    Case Is = vbYes
    
    Me.TextBox1.Value = ""
    
    Me.TextBox1.SetFocus
    
    Me.Show
    
    Case Is = vbNo
    
    Unload Me
    Last edited by Leith Ross; 12-22-2014 at 07:53 PM. Reason: Added Code Tags

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Summarizing data from multiple individual sheets to one summary sheet in same workbook
    By gerihayes@comcast.ne in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-05-2014, 11:48 PM
  2. Create Workbook with 7 Passwords
    By joerainone in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 02-13-2014, 05:43 AM
  3. Help importing multiple text files to individual sheets in an excel workbook
    By cham.miller in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-13-2010, 06:55 PM
  4. Multiple passwords in Workbook/sheets
    By steve-feldman in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-20-2010, 03:52 PM
  5. Replies: 4
    Last Post: 08-17-2006, 01:30 AM

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