+ Reply to Thread
Results 1 to 7 of 7

Getting macros to go around password entry

  1. #1
    Forum Contributor
    Join Date
    04-27-2010
    Location
    Kinsale, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    129

    Getting macros to go around password entry

    Dear Forum.
    I have been trying to compile a spreadsheet for project cashflow. I want other people to enter project progress as the project progresses, however I don't want them to be able to generally edit the workbook, and therefore have the 'Protect Worksheet' ultized with a password. I have a few macros (activated by clicking on buttons). One of these macros is to make a new month (which creates 12 different columns).
    Since the worksheet is protected it prompts for the password prior to being able to create the new columns. I have found that if I run the macro once and enter the password, that the next time it is run (without closing the worksheet), that it performs the macro without prompting for the password again. However, I was antisapating putting this workbook on a network location for various people to open and update their end of progress reporting and do not want them to have the password.
    Is there an easy way around this? Either in the VBA used or in how I would 'host' the workbook?
    I am just starting to fumble my way through creating macros so the more basic the better
    Thank you for any help you can provide.
    Last edited by Cidona; 07-03-2011 at 01:09 PM. Reason: Marked as Solved

  2. #2
    Forum Expert
    Join Date
    01-03-2006
    Location
    Waikato, New Zealand
    MS-Off Ver
    2010 @ work & 2007 @ home
    Posts
    2,243

    Re: Getting macros to go around password entry

    hi Cidona,

    Look up the protect method in the vba Help files and read the section on "userinterfaceonly:=True". (Note that this needs to be re-applied each time the file is opened & this is often done within the Open event macro of the THisWorkbook module.

    hth
    Rob
    Rob Brockett
    Kiwi in the UK
    Always learning & the best way to learn is to experience...

  3. #3
    Forum Contributor
    Join Date
    04-27-2010
    Location
    Kinsale, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    129

    Re: Getting macros to go around password entry

    Sweeeeeet!. Thank you!

  4. #4
    Forum Expert
    Join Date
    01-03-2006
    Location
    Waikato, New Zealand
    MS-Off Ver
    2010 @ work & 2007 @ home
    Posts
    2,243

    Re: Getting macros to go around password entry

    Cool, I'm pleased I could help
    Thank you for adding to my rep' & marking the thread as Solved.

    Rob

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Getting macros to go around password entry

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  6. #6
    Forum Contributor
    Join Date
    04-27-2010
    Location
    Kinsale, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    129

    Re: Getting macros to go around password entry

    Very sorry about that. I had even gone in to do so and had entered "Marked as Solved", in the reason for editing, but missed the actual "Solved" marking part.
    Thanks for the reminder royUK, and thank you again to brobo and all others on here that are so kind as to help the likes of myself have some fun with this program.

  7. #7
    Forum Expert
    Join Date
    01-03-2006
    Location
    Waikato, New Zealand
    MS-Off Ver
    2010 @ work & 2007 @ home
    Posts
    2,243

    Re: Getting macros to go around password entry

    huh?
    That's strange, I must have been seeing things - I'm sure I saw a "Solved" marker, but I guess I just saw Cidona's Edit Text.
    oh well, it's done now

    Rob

+ 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