Need Code to run 2 different macros

HK kemp

New Member
Joined
Aug 31, 2014
Messages
7
Hi i have been searching and trying to make this possible i hope you guys can help me.

1. Cell "X8" recieves a logical return of "TRUE" or "FALSE" from a drop down list
2. The "TRUE" return needs to run "Makro1"
3. The "FALSE" return needs to run "Makro2"
(4). Both macro redesigns the sheet, i dont know if you need this info or not.

The codes i have tried seems to skip one of the macros, i have also put each macro in their own modules.

I know its a simple code, and its probably starring me right in the face, but i appreciate every help i can get

Thank in advance :)
 
Just to let people know this has been solved with the following code

Code:
Private Sub WorkSheet_Change(ByVal Target As Range)
If Target.Address = "$H$19" Then
    If Not Intersect(Target, Range("X8")) Is Nothing Then Exit Sub
        If Range("X8").Value = "True" Then
            Makro1
        Else
            Makro2
    End If
End If
End Sub
 
Upvote 0

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

Forum statistics

Threads
1,224,811
Messages
6,181,081
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top