+ Reply to Thread
Results 1 to 3 of 3

Run-time error 1004 The formula is not complete. Make sure an ending square bracket ]

  1. #1
    Registered User
    Join Date
    11-03-2010
    Location
    Jakarta
    MS-Off Ver
    Excel 2007
    Posts
    63

    Run-time error 1004 The formula is not complete. Make sure an ending square bracket ]

    How do I fix this runtime error? Do I have to begin again. Here is the code:

    Sheets("PIVOT Agent Financing").Select
    ActiveSheet.PivotTables("PivotTable1").PivotSelect "'Kode Agent'[All]", _
    xlLabelOnly, True
    Selection.copy
    Sheets("1.FYC+SYC FINANCING").Select
    Range("A2").Select
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
    :=False, Transpose:=False
    Sheets("PIVOT Agent Financing").Select
    ActiveSheet.PivotTables("PivotTable1").PivotSelect "'Kode SO'[All]", _
    xlLabelOnly, True
    Application.CutCopyMode = False
    Selection.copy
    Sheets("1.FYC+SYC FINANCING").Select
    Range("H2").Select
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
    :=False, Transpose:=False
    Sheets("PIVOT Agent Financing").Select
    ActiveSheet.PivotTables("PivotTable1").PivotSelect "PRODUCT[All]", xlLabelOnly _
    , True
    Application.CutCopyMode = False
    Selection.copy
    Sheets("1.FYC+SYC FINANCING").Select
    Range("I2").Select
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
    :=False, Transpose:=False
    Application.CutCopyMode = False
    Sheets("PIVOT Agent Financing").Select
    ActiveSheet.PivotTables("PivotTable2").PivotSelect "'Kode Agent'[All]", _
    xlLabelOnly, True
    Selection.copy
    Sheets("2.RNC+TU FINANCING").Select
    Range("A2").Select
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
    :=False, Transpose:=False
    Sheets("PIVOT Agent Financing").Select
    ActiveSheet.PivotTables("PivotTable2").PivotSelect "'Kode SO'[All]", _
    xlLabelOnly, True
    Application.CutCopyMode = False
    Selection.copy
    Sheets("2.RNC+TU FINANCING").Select
    Range("H2").Select
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
    :=False, Transpose:=False
    Sheets("PIVOT Agent Financing").Select
    ActiveSheet.PivotTables("PivotTable2").PivotSelect "PRODUCT[All]", xlLabelOnly _
    , True
    Application.CutCopyMode = False
    Selection.copy
    Sheets("2.RNC+TU FINANCING").Select
    Range("I2").Select
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
    :=False, Transpose:=False
    Application.CutCopyMode = False


    Sheets("Control").Select

    End Sub

  2. #2
    Registered User
    Join Date
    11-03-2010
    Location
    Jakarta
    MS-Off Ver
    Excel 2007
    Posts
    63

    Re: Run-time error 1004 The formula is not complete. Make sure an ending square bracket ]

    Solved. Thank you

  3. #3
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Run-time error 1004 The formula is not complete. Make sure an ending square bracket ]

    Hi, triaji,

    no error reported from the debugger in Excel2013 fo the sniplet you posted. And if you soplved your problem please mind to describe the solution you found to your problem.

    Please use the code-tags instead of quote-tags for showing procedures.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Run time error (1004), for inserting formula macro
    By missy22 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-21-2014, 06:46 AM
  2. [SOLVED] Run-time error 1004; setting formula with string
    By {=OR(value=array)} in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-11-2014, 05:10 AM
  3. Replies: 0
    Last Post: 06-04-2013, 10:01 PM
  4. Run Time Error 1004 pasting formula into worksheet using VBA.
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-09-2012, 09:42 PM
  5. Replies: 1
    Last Post: 09-23-2011, 10:35 AM

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