Results 1 to 2 of 2

Thread: VBA run 3 different macros based on 3 different conditions
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    Board Regular
    Join Date
    Jul 2019
    Posts
    162
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Default VBA run 3 different macros based on 3 different conditions

    Hello,

    Is there a VBA code that can select a workbook and run different macros on condition?

    For example:

    If sheet 1, cell: A15 says the word "Blue"

    Go to Sheet 3

    run macro for blue

    Or If sheet 1, cell 15 says the word "Red"

    Go to Sheet 2

    run macro for red

    Or if Sheet 1, cell A15 says the word "Green"

    Go to Sheet 5

    run macro for green

    Thank you

    Carla

  2. #2
    Board Regular Logit's Avatar
    Join Date
    Aug 2016
    Location
    United States
    Posts
    2,783
    Post Thanks / Like
    Mentioned
    36 Post(s)
    Tagged
    1 Thread(s)

    Default Re: VBA run 3 different macros based on 3 different conditions

    .
    Look at If / ElseIf / Then ... or a SELECT CASE statement.

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •