+ Reply to Thread
Results 1 to 5 of 5

Multiple Macro VBA assistance

  1. #1
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,192

    Multiple Macro VBA assistance

    Hi All

    I am trying to get two macros with below code to run after each other on command, however am not able to achieve this.
    They run separately however. Any input will be appreciated.

    Please Login or Register  to view this content.
    And

    Please Login or Register  to view this content.
    I need them to run together as:

    Please Login or Register  to view this content.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,872

    Re: Multiple Macro VBA assistance

    Try this

    Please Login or Register  to view this content.
    Look at this link for explanation

    https://msdn.microsoft.com/en-us/lib.../gg251432.aspx
    Last edited by alansidman; 07-11-2016 at 07:04 AM.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,192

    Re: Multiple Macro VBA assistance

    Hi alansidman

    Thanks for reply. The following error occurs with above proposed code:

    Sub or Function not defined

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Multiple Macro VBA assistance

    How about.
    Please Login or Register  to view this content.
    Also remove Private from InVNoGen
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  5. #5
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,192

    Re: Multiple Macro VBA assistance

    Hi alansidman

    Same error code. I am at a loss.

    It runs fine as:

    Please Login or Register  to view this content.
    And

    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. Need Macro Assistance - Summarising Multiple Columns from unique username
    By Weekes in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-31-2014, 02:31 PM
  2. Need assistance with a long macro involving multiple excel documents.
    By AJAllen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-20-2013, 07:37 PM
  3. [SOLVED] Need assistance to create multiple entries from one using VBA.
    By Ilikeideas in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-08-2013, 07:10 AM
  4. Replies: 0
    Last Post: 03-20-2013, 11:18 AM
  5. [SOLVED] Macro code assistance to edit the year in multiple cells.
    By lilsnoop in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-29-2012, 11:18 PM
  6. Macro Assistance Multiple Selection Items and "Blanking Cells"
    By gravel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-31-2011, 09:55 AM
  7. Assistance with Sorting Across Multiple Worksheets
    By jdale in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-01-2011, 12:43 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