+ Reply to Thread
Results 1 to 7 of 7

How to run a macro behind a Password Protected excel workbook

  1. #1
    Forum Contributor
    Join Date
    01-21-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    116

    How to run a macro behind a Password Protected excel workbook

    Hi

    I have the following code that worked until the excel workbook was required to be password protected. It fails when I added the password attribute.

    Please Login or Register  to view this content.
    Any help really appreciated.

    Thanks

  2. #2
    Valued Forum Contributor mangesh.mehendale's Avatar
    Join Date
    06-04-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    510

    Re: How to run a macro behind a Password Protected excel workbook

    try using Userinterface= true...

    Please Login or Register  to view this content.
    Don`t care, take care...

    Regards,
    Mangesh

  3. #3
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: How to run a macro behind a Password Protected excel workbook

    Does VBSCript support named parameters?

  4. #4
    Forum Contributor
    Join Date
    01-21-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    116

    Re: How to run a macro behind a Password Protected excel workbook

    I was following this syntax

    Syntax

    expression .Open(FileName, UpdateLinks, ReadOnly, Format, Password, WriteResPassword, IgnoreReadOnlyRecommended, Origin, Delimiter, Editable, Notify, Converter, AddToMru, Local, CorruptLoad)

  5. #5
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: How to run a macro behind a Password Protected excel workbook

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

  6. #6
    Forum Contributor
    Join Date
    01-21-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    116

    Re: How to run a macro behind a Password Protected excel workbook

    Solution

    http://www.mrexcel.com/forum/excel-q...ml#post4312707

    Credit to RoryA

    Works a treat

    Please Login or Register  to view this content.

  7. #7
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: How to run a macro behind a Password Protected excel workbook

    That's what I said

+ 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. Opening Password-protected workbook, but still being prompted for password
    By dpmcgonigle in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-02-2015, 12:34 AM
  2. Replies: 2
    Last Post: 11-17-2014, 04:28 PM
  3. Replies: 0
    Last Post: 09-04-2014, 02:07 AM
  4. Password protected macro workbook - remove protection
    By olwy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-06-2014, 10:48 AM
  5. Replies: 1
    Last Post: 04-05-2014, 01:09 AM
  6. [SOLVED] Password array to open all password protected workbook in a folder
    By rename in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-07-2012, 05:06 AM
  7. vba macro open password protected workbook
    By Ray in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-31-2006, 11:15 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