+ Reply to Thread
Results 1 to 7 of 7

Merging info weekly

  1. #1
    Registered User
    Join Date
    05-26-2014
    Posts
    9

    Merging info weekly

    Hey guys, I have a relativly simple problem for you that i hope you can help.
    To start i have no idea how to use visual basic editor, so having a bunch of code is pretty much usless unless you can tell me what to do with it...
    My problem is that i have a master workbook that i want to be able to update weekly from 5 separate workbooks with a macro. As different sections update their workbooks daily, I want to be able to draw all their info into my workbook weekly for briefing purposes. I have set up the sheets identically so merging the info will be streamlined. Obviously each of the sections' workbooks will have different content however i will contain all of the sections' content in my master workbook. attached is the filenames of all the workbooks.

    Thanks for your help!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: Merging info weekly

    Looks like some of your workbooks are password-protected, check and see if the VBA code available in this link can be of any help for your requirement :
    Erlandsen Data Consulting - ADO / DAO
    Last edited by Saarang84; 06-02-2014 at 09:44 PM.
    If my assistance has helped, there is a reputation icon * on the left hand corner below the post - you can show your appreciation to the user who has helped in resolving your requirement.

    If your requirement has been solved please mark your thread as Solved.
    In the menu bar above the very first post, select Thread Tools, then select "Mark this thread as Solved".

    Kindly use [FORMULA] or [CODE] tags when posting your code.

    Regards,
    Sarang

  3. #3
    Valued Forum Contributor
    Join Date
    08-06-2013
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2013
    Posts
    671

    Re: Merging info weekly

    So, I can't really try this out because your workbooks are password protected, but try this:

    Please Login or Register  to view this content.
    (You'll have to change the file path. This just does one workbook. To do the others, just copy the code and change the path to the correct one for the next file)

    How to run macros
    1. Include a sample workbook with an example of the result you want
    2. Use [CODE] and [FORMULA] wrappers for your VBA code or excel formulas
    3. If your question has been answered, mark the thread as SOLVED and click on the "Add Rep" star to thank whoever helped you.

  4. #4
    Registered User
    Join Date
    05-26-2014
    Posts
    9

    Re: Merging info weekly

    Hey thanks for helping, iam however now getting the error, "invalid outside procedure" and the 'Set' is highlighted.. hopefully i edited the code correctly
    Set ThisWB = ThisWorkbook
    Sheets.Add.Name = "Temp"
    With Workbooks.Open("H:\My Documents\Quantity tracked items tool\COMPLETE\RHQQTICOMP+.xls")
    With Sheets(1)
    Intersect(.UsedRange, .UsedRange.Offset(2)).Copy ThisWB.Sheets(1).Range("A50000").End(xlUp).Offset(1)
    End With
    .Close False
    End With



    cheers

  5. #5
    Valued Forum Contributor
    Join Date
    08-06-2013
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2013
    Posts
    671

    Re: Merging info weekly

    Put your code in
    Please Login or Register  to view this content.
    . It's unnecessary. Lastly, I have two ideas for fixing your error. 1st, make sure that your code is in a new module, not on a specific sheet. 2nd, you could try ActiveWorkbook instead of ThisWorkbook. Let me know fi that helps it.

  6. #6
    Registered User
    Join Date
    05-26-2014
    Posts
    9

    Re: Merging info weekly

    Hey bud, still struggling.. if i unprotect the sheets can you have a go?
    obviously the master file is what i need the other ones to feed into.

    thanks in advance
    Attached Files Attached Files

  7. #7
    Valued Forum Contributor
    Join Date
    08-06-2013
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2013
    Posts
    671

    Re: Merging info weekly

    It works for me. All I did was change it to the correct file path for my computer.
    Please Login or Register  to view this content.

+ 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. Weekly Employee Schedule auto fill day info
    By timmiller420 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-12-2016, 06:43 PM
  2. Linking info that changes weekly
    By beautifulbee212 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-29-2010, 04:08 AM
  3. Merging info from 5 cells to 1
    By Clare in forum Excel General
    Replies: 7
    Last Post: 03-22-2006, 06:10 PM
  4. Replies: 9
    Last Post: 03-19-2006, 05:41 PM
  5. [SOLVED] Merging Info in Two Cells
    By Katsche.Schwarzenbeck@gmx.net in forum Excel General
    Replies: 1
    Last Post: 12-28-2005, 02:15 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