+ Reply to Thread
Results 1 to 2 of 2

Multiple Subs Nested

  1. #1
    Registered User
    Join Date
    09-25-2013
    Location
    Phoenix
    MS-Off Ver
    Excel 2007
    Posts
    61

    Multiple Subs Nested

    I currently have 5 nearly identical subs running at the same time. Each searches the same range of cells for a certain color, and if a cell is that color, it populates sheet2 with the text in that cell. I would like to have just one sub to run all 5 of these at the same time. Is nesting the way to go? If so, any help would be appreciated.

    If someone can tell me how to insert the text boxes that contain code so i don't have to copy paste with the actual text, I would appreciate it.

    Thanks

  2. #2
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Multiple Subs Nested

    I would use the select case format, with a different case for each color. You can find information about it here:

    http://www.techonthenet.com/excel/formulas/case.php
    Thanks,
    Solus


    Please remember the following:

    1. Use [code] code tags [/code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    Highlight the code in your post and press the # button in the toolbar.
    2. Show appreciation to those who have helped you by clicking below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

    "Slow is smooth, smooth is fast."

+ 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. Nesting Multiple Subs
    By cp41 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-30-2013, 03:58 PM
  2. Looping multiple Subs
    By MikeWaller in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-24-2013, 08:20 AM
  3. Module Subs executing Private Subs without prompt by code - Totally Lost
    By Ozan Ertem in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 12-26-2012, 05:31 PM
  4. Multiple Private subs
    By LouiseH24 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-14-2011, 01:18 PM
  5. [SOLVED] Exiting Multiple Subs?
    By SS in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-02-2005, 04:05 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