Results 1 to 16 of 16

Macro: Compile error: Ambiguous name detected: test

Threaded View

  1. #1
    Registered User
    Join Date
    06-30-2019
    Location
    Minnesota, USA
    MS-Off Ver
    MS Office 2017
    Posts
    13

    Macro: Compile error: Ambiguous name detected: test

    Hello All,


    I am attempting to run a macro but I am struggling with it, when I have the same macro format(I'm unsure of the correct terminology to use for it), the one difference is that I'm changing the rows with certain text that it's deleting. Although when I go to run the macro, it's telling me "Compile error: Ambiguous name detected: test". Can someone dummy it down for me and tell me what I'm doing wrong here?

    Below is the code I am using for the macro, essentially the page breaks pull the same headers when exporting so rather than scrolling and deleting them all, why not make this easier and create the macro.

    I would appreciate all help here!


    Sub test()
    With ActiveSheet
        .AutoFilterMode = False
        With Range("a1", Range("a" & Rows.Count).End(xlUp))
            .AutoFilter 1, "*System:*"
            On Error Resume Next
            .Offset(1).SpecialCells(12).EntireRow.Delete
        End With
        .AutoFilterMode = False
    End With
    End Sub
    
    Sub test()
    With ActiveSheet
        .AutoFilterMode = False
        With Range("a1", Range("a" & Rows.Count).End(xlUp))
            .AutoFilter 1, "*ACI Support Specialists, LLC*"
            On Error Resume Next
            .Offset(1).SpecialCells(12).EntireRow.Delete
        End With
        .AutoFilterMode = False
    End With
    End Sub
    
    Sub test()
    With ActiveSheet
        .AutoFilterMode = False
        With Range("a1", Range("a" & Rows.Count).End(xlUp))
            .AutoFilter 1, "*Original*"
            On Error Resume Next
            .Offset(1).SpecialCells(12).EntireRow.Delete
        End With
        .AutoFilterMode = False
    End With
    End Sub
    Last edited by AliGW; 07-28-2019 at 12:13 PM. Reason: Formatting removed for legibility.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Assistance needed in amending a macro.
    By tweacle in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-15-2019, 02:40 PM
  2. Replies: 1
    Last Post: 09-11-2013, 10:53 AM
  3. Macro assistance needed for complex export/import excel file
    By dedavie in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-28-2013, 02:47 PM
  4. HELP... Assistance needed Please!
    By MChase in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 09-23-2012, 11:08 AM
  5. [SOLVED] Conditional Formatting for duplicates--Macro assistance needed
    By dwhite30518 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 05-28-2012, 10:10 AM
  6. Macro Assistance Needed for Scheduling
    By jhashmore in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 04-13-2012, 11:30 AM
  7. VBA Assistance Needed
    By RalphB in forum Excel General
    Replies: 5
    Last Post: 02-22-2006, 02:20 PM

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