mahmed1
Well-known Member
- Joined
- Mar 28, 2009
- Messages
- 2,302
- Office Version
- 365
- 2016
- Platform
- Windows
Hi All
I have set up powerQuery connection to pull back data from a database - At the minute it pulls back everything
Is it possible to only pull back data from a start date and end date in excel?
so say im A1 i have startdate and A2 i have enddate - Can i only pull back that data so im not pulling more data than needed?
And also in VBA - im refreshing all the powerQuery connections...I recorded a macro and the macro code first selects the sheet and then uses Selection.ListObject.QueryTable.Refresh BackgroundQuery:=False
I tried to not use the select method and just refresh it by using the following thisworkbook.connections(“tblQuery”).refresh but that fails
how can i avoid using select?
I have set up powerQuery connection to pull back data from a database - At the minute it pulls back everything
Is it possible to only pull back data from a start date and end date in excel?
so say im A1 i have startdate and A2 i have enddate - Can i only pull back that data so im not pulling more data than needed?
And also in VBA - im refreshing all the powerQuery connections...I recorded a macro and the macro code first selects the sheet and then uses Selection.ListObject.QueryTable.Refresh BackgroundQuery:=False
I tried to not use the select method and just refresh it by using the following thisworkbook.connections(“tblQuery”).refresh but that fails
how can i avoid using select?