Results 1 to 4 of 4

Debug message / trigger and stop macro.

Threaded View

  1. #1
    Registered User
    Join Date
    06-02-2015
    Location
    México
    MS-Off Ver
    2010
    Posts
    7

    Debug message / trigger and stop macro.

    I would ask to your help, Im tryng to stop the code if the value in cell target is equals target value, but when i try to writ in some part of the sheet VBA send me a debug message.

    My target is:

    If target cell contains target value then run the code. (and it does but when i populate any valu in any cell VBA send me an Debug msbox)

    Somebody could help me please.


    Code in sheet 1

    Private Sub Worksheet_Change(ByVal Target As Range)

    Set Target = Range("A1")
    If Target.Value = "X" Then
    Call Desagrupar

    Exit Sub
    End If
    End Sub


    Macro un Module 1

    Sub Desagrupar()

    ' Muestra el detalle de los rangos seleccionados

    Rows(9).ShowDetail = True
    Rows(20).ShowDetail = True


    End Sub
    Attached Images Attached Images

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Need Macro to Stop and Show Message When Error, or Continue
    By Phillycheese5 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-23-2018, 01:25 PM
  2. Replies: 14
    Last Post: 10-19-2018, 07:23 AM
  3. [SOLVED] I want a pop-up message rather than the macro debug message, when my macro can't run
    By BTOFS in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-10-2015, 09:47 PM
  4. If cell contains text string then run macro, otherwise stop macro and popup message
    By justindk in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-15-2014, 08:20 AM
  5. Message box VBA - trigger to remain constant, need VBA to stop thereafter
    By orlando212 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-31-2013, 08:55 AM
  6. Stop a Macro if Criteria not met and Show Error Message
    By m3hool in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-17-2013, 10:12 AM
  7. Make macro stop and give message box.
    By Hjahren in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-29-2010, 08:04 AM

Tags for this Thread

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