Consulting

Results 1 to 4 of 4

Thread: need help on using results from formula to use in case macro

  1. #1
    VBAX Regular
    Joined
    Dec 2015
    Posts
    57
    Location

    need help on using results from formula to use in case macro

    I am trying to use the results of a formula in my case macro but cannot figure out code.

    formula in cell c3 is an index match formula

    Private Sub Worksheet_Change(ByVal Target As Range)
      If Not Intersect(Target, Range("C3")) Is Nothing Then
    Dim x As String
    x = Range("c3").Text
        Select Case x
          Case "JAY": FF199_ONLY_JAY
    End Select
        End If
     
        End Sub
    Last edited by Paul_Hossler; 11-21-2018 at 02:30 PM. Reason: Added CODE tags

  2. #2
    VBAX Expert Dave's Avatar
    Joined
    Mar 2005
    Posts
    835
    Location
    What's the code supposed to do? If you have "JAY" in C3 then FF_ONLY_JAY ??????? That doesn't do anything???? A bit more info about your desired outcome is needed. Dave

  3. #3
    VBAX Regular
    Joined
    Dec 2015
    Posts
    57
    Location
    Dave,

    Thank you for responding for more clarity. I revised my approach and I achieved what I needed.

  4. #4
    VBAX Expert Dave's Avatar
    Joined
    Mar 2005
    Posts
    835
    Location
    You are welcome. Thanks for posting your outcomes. Dave

Posting Permissions

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