+ Reply to Thread
Results 1 to 4 of 4

Run/Call a script

  1. #1
    Registered User
    Join Date
    12-12-2018
    Location
    Vancouver
    MS-Off Ver
    14.0.6023.1000
    Posts
    4

    Run/Call a script

    So I am working on a script that pulls several excel workbooks together into one. Some of my source workbooks have 'update" scripts embedded in them and before i copy the worksheets to the new master file, I want to run the 'update' script



    'Copy Evoke LV - Sundries into LV CA-0
    Workbooks.Open Filename:= _
    "\\mhf.local\PrdtMgrPriceLists\Accessories and Sundries\Met West\Current Updated Version\CURRENT CAN West - Sundries.xlsm"
    Call SundriesUPDATE
    Sheets("Sundries").Select
    Sheets("Sundries").Copy After:=Workbooks( _
    "CURRENT CAN West - Price List.xlsm").Sheets(9)


    FYI - Windows 10 - Excel 2010 V14.something or other.
    "CURRENT CAN West - Price List.xlsm" = New Master
    "CURRENT CAN West - Sundries.xlsm" = Needs to be copy and pasted into new Master
    "SundriesUPDATE" = update script in Sundires.xlsm file


    M
    Last edited by MetroMooose; 12-12-2018 at 03:18 PM.

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Run/Call a script

    Hi, welcome to the forum.
    Your question is quite vague but I am assuming that you want to run a macro when that file opens.
    Well, you add the parameter to run that specific when the file opens.
    Google for open excel and run a specific macro
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Registered User
    Join Date
    12-12-2018
    Location
    Vancouver
    MS-Off Ver
    14.0.6023.1000
    Posts
    4

    Re: Run/Call a script

    Thank you Keelbellah,
    I have found a couple things pages about running a script automatically when I open a File. Not quiet what I was looking for. But might just work.

  4. #4
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Run/Call a script

    If you need help with that, holler

+ 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. Trying to call/use RemoveDuplicates from a VBS script
    By pdeg in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-13-2022, 06:21 AM
  2. how to call and execute pl/sql procedure using vba script
    By slok in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-25-2014, 02:17 AM
  3. [SOLVED] How do I call from within a macro script a sub in another xla add-in?
    By dschmitt in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-25-2014, 10:07 PM
  4. call a python script from excel vba
    By sheffieldlad in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-28-2013, 07:11 PM
  5. Create VBA script to short, dedicated button in excel for script?
    By realized in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-01-2009, 11:54 PM
  6. Replies: 2
    Last Post: 06-25-2006, 12:10 PM
  7. [SOLVED] how to call a value from a cell into a VB script ?
    By raymond m. in forum Excel General
    Replies: 10
    Last Post: 04-08-2005, 08:06 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