Solved

Compile Error: Expected List Separator or) error message

Posted on 2016-11-06
5
81 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 70

Expert Comment

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

Author Comment

by:Dokat
ID: 41876430
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 70

Expert Comment

by:Qlemo
ID: 41876968
Of course you removed the ' in front of the line?
0
 

Author Comment

by:Dokat
ID: 41877315
where do i need to put the ' in front of the line?
0
 
LVL 70

Accepted Solution

by:
Qlemo earned 500 total points
ID: 41877581
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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

628 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