Results 1 to 2 of 2

Thread: Excel - Linked Workbook Passwords

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2008
    Location
    U.K.
    Posts
    65

    Excel - Linked Workbook Passwords

    I have a workbook that collates the information from 12 other workbooks but each workbook has a different password. Is there a way I can replace the formula in each cell (a grid of 105 cells) so that a vba function would call each workbook, open it with the required password automatically and update the cell in the laster workbook with the accumulative value?

    i.e.

    Cell B4 has =Sum(Workbook1!B4,Workbook2!B4,Workbook3!B4,Workbook4!B4...)
    Cell C4 has =Sum(Workbook1!C4,Workbook2!C4,Workbook3!C4,Workbook4!C4...)

    I hope this makes sense. If you need anything else, please let me know.

    Kind regards,
    Mav

  2. #2
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Excel - Linked Workbook Passwords

    Is there a way I can replace the formula in each cell (a grid of 105 cells) so that a vba function would call each workbook, open it with the required password automatically
    as you are referring to the workbooks multiple times, you could just open them all, then update the cells with formula then close all, rather than having to open all / many for each cell containing formula
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width