+ Reply to Thread
Results 1 to 2 of 2

VBA code in existing code to open when workbook encrypt with password.

Hybrid View

deo_y VBA code in existing code to... 08-26-2014, 07:06 AM
Izandol Re: VBA code in existing code... 08-26-2014, 07:08 AM
  1. #1
    Registered User
    Join Date
    08-19-2014
    Location
    Delhi
    MS-Off Ver
    2010
    Posts
    2

    VBA code in existing code to open when workbook encrypt with password.

    Hi Members,

    first of all thanks a lot for this forum where i got an opportunity to learn.my first posting as below

    Please see this code it will open the workbook but now this workbook now encrypt with password, I tried through below link but its not working so please please suggest, what will be coding.
    Set sw = Workbooks.Open("C:\Documents and Settings\ramesh\Desktop\Tracker Sheet- CRM.xlsx"), password:="XXXXXXXX"

    Regards

    deo_y

  2. #2
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: VBA code in existing code to open when workbook encrypt with password.

    This code is correct although you should include all argument names:
    Set sw = Workbooks.Open(filename:="C:\Documents and Settings\ramesh\Desktop\Tracker Sheet- CRM.xlsx"), password:="XXXXXXXX"
    What is error?
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

+ 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. Password in Workbook open VBA code?
    By thomas.szwed in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-26-2014, 07:39 AM
  2. VBA code that bypass Password prompt for every workbook with one master password
    By pwnyadav007 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-22-2014, 01:45 AM
  3. Code to open read only file and fill in password
    By kosherboy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-22-2014, 05:04 PM
  4. vba password code to prevent excel file upon open
    By banadh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-04-2012, 12:29 PM
  5. [SOLVED] VBA Security / Encrypt VBA Code
    By NALDO in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-04-2012, 03:31 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