+ Reply to Thread
Results 1 to 5 of 5

how do i merge two macro into one ?

  1. #1
    Registered User
    Join Date
    07-31-2011
    Location
    Pakistan
    MS-Off Ver
    Excel 2019
    Posts
    63

    how do i merge two macro into one ?

    Plz i want to merge below two macros into one macro code, so whenever i run that macro, both works together. Thanks

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  2. #2
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: how do i merge two macro into one ?

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    06-17-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    157

    Re: how do i merge two macro into one ?

    Quote Originally Posted by Kenneth Hobson View Post
    Please Login or Register  to view this content.
    Wow, that's all you need?!? That's awesome! I've always written it as:

    Please Login or Register  to view this content.

  4. #4
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: how do i merge two macro into one ?

    Well, you do need to run the RunBoth sub in one of the many ways to run/play a macro. The Application.Run method is used to run a macro from some other open workbook typically.

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: how do i merge two macro into one ?

    It might be faster to use AutoFilter, depends on how the data is laid out
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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