+ Reply to Thread
Results 1 to 2 of 2

Macro which opens workbook, runs macro, copies and then closes

  1. #1
    Forum Contributor
    Join Date
    12-18-2012
    Location
    Sweden
    MS-Off Ver
    Office 2016
    Posts
    158

    Macro which opens workbook, runs macro, copies and then closes

    Hi!

    I have a Masterfile which I want a macro in which opens the excelfile: "C:\Users\Scoring\Desktop\2014 Scoring\Silent Scoring\Silent Summary.xlsm"

    This file has several macros but the first one (which calls all other in order) is named Becke (Says Sheet3.Becke in the Macrolist and the first line in it is "Sub Becke()" )
    I want my Macro in my Summary Masterfile to Open the workbook, Start the macro "Becke" and let it all run (25 macros in which all ends with "Call [Macroname]" and then "End Sub"). When this is completed I want the macro to copy the information in Range A2 to Z27 (A2 to Z2, A3 to Z3 etc down to A27:Z27) from this Silent Summary File, Sheet name: Summary to the Masterfile (Named: Summary Masterfile) into the Sheet called SLASK SILENT from A2 to Z27.

    Anyone have any idea on what to do? I tried doing some recording of a macro but seems I cant get it to activate a macro within another file when recording a macro

    I belive the structure would be like this:

    Please Login or Register  to view this content.
    But honestly im a newbie at this stuff and so far the people here have helped me greatly and I've finally gotten my boss to accept my request for proper VBA and Excel education so hopefully in the future I can help on the forum as well But for now im asking for help once more!

    Thank you in advance and thanks for a great forum!

  2. #2
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,784

    Re: Macro which opens workbook, runs macro, copies and then closes

    Assuming the macro is in a file named "Master" file a macro like this will activate the "Silent Summary" file, run macros and copy result to master.

    Please Login or Register  to view this content.
    Alf

+ 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. Macro that opens another workbook and copies a worksheet onto existing one.
    By evisu18 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-11-2012, 09:15 PM
  2. Macro that Opens files, updates links, saves and closes file
    By dandavis1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-09-2011, 04:28 AM
  3. Macro that opens and closes many files uses too much memory
    By Whizbang in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-19-2010, 04:31 PM
  4. Macro opens some MS workbooks, takes specific data in Master Workbook, then closes.
    By SunOffice in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-04-2010, 05:41 PM
  5. run a macro before a workbook closes
    By Jonathan in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-17-2005, 12:10 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