+ Reply to Thread
Results 1 to 5 of 5

Executing code in series

  1. #1
    Registered User
    Join Date
    03-05-2014
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    12

    Executing code in series

    Want to execute three codes on a single click
    For example I have three code
    Sub Code1 () in sheet1
    Sub Code2 () in sheet1
    Sub Code3 () in sheet2

    Can there be a code that can execute above three code in
    sequence on the click of button. The button can be sheet1.

    Thanks
    Dhakan

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,043

    Re: Executing code in series

    use

    Please Login or Register  to view this content.
    Never use Merged Cells in Excel

  3. #3
    Registered User
    Join Date
    03-05-2014
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Executing code in series

    Thank you very much zbor for your reply.
    Since I am in hurry today will again check thoroughly
    day after tomrw and reply you back because probably
    the code3 which is in sheet2 doenot get executed.

    Howevery I will check again and get back to you.

    Thanks
    Dhakan

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,043

    Re: Executing code in series

    It is executed but please check if it's defined within code to use Activesheet. instead of Sheet2.
    In that case code will run for Sheet1 again so you might get unexpected result.

  5. #5
    Registered User
    Join Date
    03-05-2014
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Executing code in series

    Thanks for the solution
    It is working fine

    Dhakan

+ 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. Getting error while executing VBA Code
    By Sahil1087 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-09-2012, 02:53 AM
  2. [SOLVED] Continue executing code
    By Henrich in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-28-2006, 08:35 AM
  3. [SOLVED] QUERY & HELP: so slow executing VBA code... :S
    By KevinGPO in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-13-2006, 11:50 AM
  4. [SOLVED] do anybody have a sample code for executing excel macro from vb code?<eom>
    By B Deepak in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-30-2005, 05:05 AM
  5. VBA code does not start executing from Row 1
    By magoobee in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-29-2005, 03:40 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