Solved

Compile Error: Expected List Separator or) error message

Posted on 2016-11-06
5
29 Views
Last Modified: 2016-11-21
I am receiving "Compile Error: Expected List Separator or)" error message. Can anyone help me with whats causing the error message with the below code.

Only change i made was in the last bracket i replaced "Delta" with "Range("AO294").Text"

Sub MyPvt() ' ' MyPvt Macro '

' ActiveSheet.PivotTables("MyPvt").PivotFields( _ "[Append1].[Manufacturer].[Manufacturer]").VisibleItemsList = Array( _ "[Append1].[Manufacturer].&[Range("AO294").Text]"

End Sub

Thank you
0
Comment
Question by:Dokat
  • 3
  • 2
5 Comments
 
LVL 68

Expert Comment

by:Qlemo
Comment Utility
You are missing a closing ) at the very end of the line.
0
 

Author Comment

by:Dokat
Comment Utility
I added the closing ) now I don't get error message but it doesn't update my filter selection when I ran the macro. Can you please help

Thanks
0
 
LVL 68

Expert Comment

by:Qlemo
Comment Utility
Of course you removed the ' in front of the line?
0
 

Author Comment

by:Dokat
Comment Utility
where do i need to put the ' in front of the line?
0
 
LVL 68

Accepted Solution

by:
Qlemo earned 500 total points
Comment Utility
Sub MyPvt() ' ' MyPvt Macro '

ActiveSheet.PivotTables("MyPvt").PivotFields( _ "[Append1].[Manufacturer].[Manufacturer]").VisibleItemsList = Array( _ "[Append1].[Manufacturer].&[Range("AO294").Text]")

End Sub

Open in new window

0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now