+ Reply to Thread
Results 1 to 6 of 6

How to pull data from multiple excel file with password protect

  1. #1
    Registered User
    Join Date
    01-13-2017
    Location
    india
    MS-Off Ver
    ms office 2013
    Posts
    5

    How to pull data from multiple excel file with password protect

    I have multiple excel file with password protect , I want to pull the data in one master file through VBA. kindly help me

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,493

    Re: How to pull data from multiple excel file with password protect

    Help you with what?, you haven't offered any information.

  3. #3
    Registered User
    Join Date
    01-13-2017
    Location
    india
    MS-Off Ver
    ms office 2013
    Posts
    5

    Re: How to pull data from multiple excel file with password protect

    Dear Sir,

    I have multiple excel file with password protected , I want merge the data in one master excel file using VBA code/Macro. kindly help me pls

  4. #4
    Registered User
    Join Date
    01-13-2017
    Location
    india
    MS-Off Ver
    ms office 2013
    Posts
    5

    Re: How to pull data from multiple excel file with password protect

    i want macro code for , I've 10 workbooks (which represent different folder) that populate a one master workbook

    We've now started to password protect the 10 workbooks. When i open the master workbook and click update - i get prompted to enter the passwords of the 10 workbooks

    My question - is it possbile to automatically have the passwords entered so that the master can get updated?

  5. #5
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,493

    Re: How to pull data from multiple excel file with password protect

    Here is a thread about opening a password protected workbook.

    http://www.excelforum.com/showthread.php?t=663581

  6. #6
    Registered User
    Join Date
    01-13-2017
    Location
    india
    MS-Off Ver
    ms office 2013
    Posts
    5

    Re: How to pull data from multiple excel file with password protect

    Dear Sir,

    I have 5 files with same header in different location . End of the day i want to combine the data from this 5 file to master file.

    but i got some code with my friend below mention,

    sub simpleXlsMerger()
    Dim bookList As Workbook
    Dim mergeObj As Object, dirObj As Object, filesObj As Object, everyObj As Object
    Application.ScreenUpdating = False
    Set mergeObj = CreateObject("Scripting.FileSystemObject")

    'change folder path of excel files here
    Set dirObj = mergeObj.Getfolder("C:\Temp\ExcelFilesMerge")
    Set filesObj = dirObj.Files
    For Each everyObj In filesObj
    Set bookList = Workbooks.Open(everyObj)

    'change "A2" with cell reference of start point for every files here
    'for example "B3:IV" to merge all files start from columns B and rows 3
    'If you're files using more than IV column, change it to the latest column
    'Also change "A" column on "A65536" to the same column as start point
    Range("A2:IV" & Range("A65536").End(xlUp).Row).Copy
    ThisWorkbook.Worksheets(1).Activate

    'Do not change the following column. It's not the same column as above
    Range("A65536").End(xlUp).Offset(1, 0).PasteSpecial
    Application.CutCopyMode = False
    bookList.Close
    Next
    End Sub

    but this code extract in one folder,, how can i write code for different folder location and specific file name. and how to mention password array code for open file ( becaz all excel file password protect)
    kindly help me out please.

+ 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] VB Code to password protect the excel file
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-07-2015, 08:27 AM
  2. Password Protect Excel File
    By akynyemi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-16-2013, 09:03 AM
  3. password protect excel file deletion
    By ag273n in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-04-2013, 06:46 PM
  4. Password protect an excel file?
    By in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-28-2009, 10:53 AM
  5. Replies: 3
    Last Post: 12-20-2005, 12:50 PM
  6. How do I use a password to protect an Excel file from peeping eyes?
    By Fat Cat in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-30-2005, 10:06 AM
  7. How do I use a password to protect an Excel file from peeping eyes?
    By Fat Cat in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-30-2005, 10:06 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