Forum

Speed up power quer...
 
Notifications
Clear all

Speed up power query using Disable background preview but on user's computer

5 Posts
2 Users
0 Reactions
662 Views
(@jaryszek)
Posts: 177
Reputable Member
Topic starter
 

Hi Guys,

to make my PQuries faster - i set up:

1) Power Quuery open one query

2) Query Options

3) Data Load --> Set up Background data previews to download in the background accrding to each file's setting -- i am dischecking this

It is nice and qucker time to refresh than without it. 
How can i use VBA to set up this option at my user's computer using VBA?

For security code in Power Query i am using thisworkbook.queries.fastcombine = true so i know that it is possible,

plese help,
Jacek

 
Posted : 15/05/2021 11:08 am
(@catalinb)
Posts: 1937
Member Admin
 

Not everything can be set from vba unfortunately.

You can use the Object Browser to explore the objects properties that can be used in vba (from VB Editor, press F2 to open object browser, then search for the object you need)

You can see some properties of ThisWorkbook.Queries and ThisWorkbook.QueryTable objects in the attached images, if you find what you need there then you can use it.

1-4.jpg2.jpg

 
Posted : 17/05/2021 12:19 am
(@jaryszek)
Posts: 177
Reputable Member
Topic starter
 

Hi Catalin,

thank you!
So this is not possible i think? 

Hmm this is one part of doing performence more robust using power query. 
There is also Table Buffer but not working always. 

Best,
Jacek

 
Posted : 18/05/2021 2:42 am
(@catalinb)
Posts: 1937
Member Admin
 

Not everything you have in user interface can be used in vba, otherwise it will be a security issue. Think about permissions, if you can control these settings remotely, then this will be a serious security issue.

I did not found what you need in the object library so i assume is not possible.

 
Posted : 18/05/2021 10:57 pm
(@jaryszek)
Posts: 177
Reputable Member
Topic starter
 

thank you Catalin,

you have right!

 
Posted : 19/05/2021 1:31 am
Share: