+ Reply to Thread
Results 1 to 10 of 10

Help getting value from closed workbook with GetValue function without asking for password

  1. #1
    Registered User
    Join Date
    02-18-2017
    Location
    Dallas
    MS-Off Ver
    Windows 10
    Posts
    17

    Help getting value from closed workbook with GetValue function without asking for password

    I am trying to get a value from a close workbook using this function
    Please Login or Register  to view this content.
    The workbook this function references is Microsoft password protected and the user is prompted to enter the password when the last line in the code runs. Is there a way to programmatically provide the password or bypass prompt for password.

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Help getting value from closed workbook with GetValue function without asking for pass

    Hello catalystsystems,

    Unfortunately, your request falls within the scope of our Forum Rules;

    Your post does not comply with Rule 11 of our Forum RULES.

    Don't post questions regarding breaking or bypassing any security measure. Such posts will be deleted, and repeat offenders will be banned. This includes posting of links to sites that offer software, code or services to do this or posting of code to remove passwords

    I suspect that this Thread will be Closed

    Regards.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Help getting value from closed workbook with GetValue function without asking for pass

    catalystsystems do you have the password for that file?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Help getting value from closed workbook with GetValue function without asking for pass

    @ FDibbins,

    Hey there my Friend. so nice to see you back in action! Hope things are much better with you now.

    Take care!

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Help getting value from closed workbook with GetValue function without asking for pass

    Hi boetman. Yup, still keeping the kop active, good to see you again, my friend

  6. #6
    Registered User
    Join Date
    02-18-2017
    Location
    Dallas
    MS-Off Ver
    Windows 10
    Posts
    17

    Re: Help getting value from closed workbook with GetValue function without asking for pass

    Thank you for your reply and clarification. My intent is not to bypass security measures but I certainly understand the need for this rule.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Help getting value from closed workbook with GetValue function without asking for pass

    So if yo dont have the password for this file, I will close this thread now. PM me if you do have the PW, and I will re-open it for you

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Help getting value from closed workbook with GetValue function without asking for pass

    It seems that OP dos have the PW for this file (told me in PM), so I am going to re-open this file for them. If they dont want to post the PW in the thread, they can either change it to something else, or PM the PW to whoever will be assisting them

  9. #9
    Registered User
    Join Date
    02-18-2017
    Location
    Dallas
    MS-Off Ver
    Windows 10
    Posts
    17

    Re: Help getting value from closed workbook with GetValue function without asking for pass

    Thanks for your help. The password for all of my database files is "catalyst".

    When I open a protected workbook I can include the password, which works great. But opening other database workbooks is taking time and keeps the screen flashing even when Screen Updating is off. I am trying the GetValue function as a workaround.

    Is there a way to provide the password in the code I'm using for the GetValue function? Or is this even the best way to data from a workbook I am using as a database?

  10. #10
    Forum Expert
    Join Date
    10-02-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1,222

    Re: Help getting value from closed workbook with GetValue function without asking for pass

    Not with GetValue, as far as I can tell it wont even work if the sheet in the file is hidden. The sheet in the other file has to be able to be "activated" for the GetValue to work, which isnt possible if the file is password protected.

    Another method may be trying an ADO stream to get the data, with that you should be able to pass the password to unlock the file and pull what you need. Its certainly a more complex approach. I havent used ADO for years, so I wouldnt be able to explain how. May want to research using ADO to do this.
    Ways to get help: Post clear questions, explain your overall goal, supply as much background as possible, respond to questions asked of you by those trying to help and post sample(s) files.

    "I am here to help, not do it for people" -Me

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Copy range of data in Closed workbook with password
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-29-2015, 04:23 PM
  2. Replies: 0
    Last Post: 03-27-2014, 12:38 PM
  3. INDIRECT function for closed workbook
    By BogdanH in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-14-2013, 02:50 PM
  4. Using GetOpenFilename with the GetValue function
    By mike679 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-10-2012, 06:46 PM
  5. GetValue to extract data from closed files
    By John James in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-08-2006, 06:19 AM
  6. [SOLVED] Using the Getvalue Function & ExecuteExcel4Macro
    By solidunity in forum Excel General
    Replies: 2
    Last Post: 07-12-2005, 04:05 PM
  7. Re: Using the Getvalue Function & ExecuteExcel4Macro
    By solidunity in forum Excel General
    Replies: 0
    Last Post: 07-12-2005, 12:05 PM

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