Consulting

Results 1 to 3 of 3

Thread: Help! Error whilst record Macro ""Too many line continuations"

  1. #1
    VBAX Newbie
    Joined
    Jun 2014
    Posts
    1
    Location

    Help! Error whilst record Macro ""Too many line continuations"

    Whilst I macro record, I use the filter function to just get the excel error "Too many line continuations"

    See code below:


    Sub Macro14()
    '
    ' Macro14 Macro
    '
    '
    Rows("11:11").Select
    Selection.AutoFilter
    ActiveSheet.Range("$A$11:$JI$2715").AutoFilter Field := 24, Criteria1 := Array( _
    "VLCP2;AAGAP;FAJAC;AB9GF|VLCP2;AAGAA;FAJAC;AB9GF|VLCP2;AAGBK;FAJAC;AB9GG|VL CP2;AAGAT;VS C9;AB9GE|VLCP2;AAGCF;VS C9;AB9GE|VLCP2;AAGAA;VS C9;AB9GF|VLCP2;AAGAP;FAJAB;VS C9;AB9GF|VLCP2;AAGAA;FAJAB;VS C9;AB9GF" _
    ,"VLCP2;AAGAT;AB9GE", _
    "VLCP2;AAGAT;AB9GE|VLCP2;AAGAP;FAJAC;AB9GF|VLCP2;AAGAA;FAJAC;AB9GF", _
    "VLCP2;AAGAT;AB9GE|VLCP2;AAGAP;FAJAC;AB9GF|VLCP2;AAGAA;FAJAC;AB9GF|VLCP2;AA GBK;FAJAC;AB9GG" _
    , _
    "VLCP2;AAGAT;AB9GE|VLCP2;AAGAP;FAJAC;AB9GF|VLCP2;AAGAA;FAJAC;AB9GF|VLCP2;AA GBK;FAJAC;AB9GG|VLCP2;AAGAT;VS C9;AB9GE|VLCP2;AAGCF;VS C9;AB9GE|VLCP2;AAGAT;FAJAB;VS C9;AB9GE|VLCP2;AAGAT;FAJAC;VS C9;AB9GE" _
    ,,,,"VLCP2;AAGAT;AB9GE|VLCP2;AAGBK;FAJAC;AB9GG", _
    "VLCP2;AAGAT;AB9GE|VLCP2;AAGCF;AB9GE|VLCP2;AAGAP;AB9GF|VLCP2;AAGBK;AB9GG|VL CP2;AAGBL;AB9GH" _
    , _
    "VLCP2;AAGAT;AB9GE|VLCP2;AAGCF;AB9GE|VLCP2;AAGAP;AB9GF|VLCP2;AAGBK;AB9GG|VL CP2;AAGBL;AB9GH|VLCP2;AAGB6;AB9GH" _
    ,"VLCP2;AAGAT;AB9GE|VLCP2;AAGCF;AB9GE|VLCP2;AAGBL;AB9GH", _
    "VLCP2;AAGAT;AB9GE|VLCP2;AAGCF;AB9GE|VLCP2;AB9GF|VLCP2;AB9GG|VLCP2;AAGB6;AA GBS;AB9GH" _
    ,, _
    "VLCP2;AAGAT;AB9GE|VLCP2;AB9GF|VLCP2;AB9GG|VLCP2;AAGB6;AAGB7;AAGBL;AB9GH|VL CP2;AAGBS;AB9GH" _
    ,"VLCP2;AAGAT;BS FC;AB9GE|VLCP2;BS FC;AB9GF|VLCP2;BS FC;AB9GH", _
    "VLCP2;AAGAT;BS FC;AB9GE|VLCP2;BS FC;AB9GG", _
    "VLCP2;AAGAT;BS FC;AB9GE|VLCP2;BS FC;AB9GH","VLCP2;AAGAT;BS FC;BS FF;AB9GE", _
    "VLCP2;AAGAT;BS HC;AB9GE|VLCP2;AAGAT;BS FC;AB9GE|VLCP2;AAGCF;BS HC;AB9GE|VLCP2;AAGCF;BS FC;AB9GE|VLCP2;AAGBL;AB9GH" _
    , _
    "VLCP2;AAGAT;BS HC;AB9GE|VLCP2;BS HC;AB9GF|VLCP2;BS HC;AB9GG|VLCP2;AAGB6;AAGB7;AAGBL;BS HC;AB9GH|VLCP2;AAGBS;BS HC;AB9GH" _
    ,"VLCP2;AAGAT;BS HC;BS FF;AB9GE|VLCP2;BS HC;BS FF;AB9GH", _
    "VLCP2;AAGAT;BS HC;DR 5;AB9GE|VLCP2;BS HC;DR 5;AB9GF|VLCP2;BS HC;DR 5;AB9GG|VLCP2;AAGB6;AAGB7;AAGBL;BS HC;DR 5;AB9GH|VLCP2;AAGBS;BS HC;DR 5;AB9GH" _
    ,"VLCP2;AAGAT;DR 3;AB9GE","VLCP2;AAGAT;DWAAC;AB9GE",, _
    End Sub



  2. #2
    VBAX Guru mancubus's Avatar
    Joined
    Dec 2010
    Location
    "Where I lay my head is home" :D
    Posts
    2,644
    PLS DO NOT PM; OPEN A THREAD INSTEAD!!!

    1) Posting Code
    [CODE]PasteYourCodeHere[/CODE]
    (or paste your code, select it, click # button)

    2) Uploading File(s)
    Go Advanced / Attachments - Manage Attachments / Add Files / Select Files / Select the file(s) (multiple files can be selected while holding Ctrl key) / Upload Files / Done
    Replace company specific / sensitive / confidential data. Include so many rows and sheets etc in the uploaded workbook to enable the helpers visualize the data and table structure. Helpers do not need the entire workbook.

    3) Testing the Codes
    always back up your files before testing the codes.

    4) Marking the Thread as Solved
    from Thread Tools (on the top right corner, above the first message)

  3. #3
    VBAX Tutor
    Joined
    Mar 2014
    Posts
    210
    Location
    Stop using the underscore at the end of sentences. You only get so many.

Tags for this Thread

Posting Permissions

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