VBA to refresh Power Query Editor > json and pull in values onto a new row using a single button..?

QRZBuddha

New Member
Joined
Apr 8, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I wonder if you guys can stop a laptop being thrown out of a window.... I've got no patience with trying to do this sort of thing, there's tons of information out there, but none of it quite matches what I'm trying to achieve..

A bit of background, I've created a Power Query that reads data from .json files (these can vary, but I'm comfortable with pointing it to the correct one when required, but for the most part it will need to be the same .json refreshed periodically). The data that is pulled in requires converting which I've set up using a series of lookup tables. The resulting values then need to be copied from a common source and pasted into a new row on the first sheet of the same workbook each time with a date/time stamp added.

I was hoping I could achieve this by adding a button (in column A) that would perform this task and then move down a row ready for the next update.

Screenshot 2022-04-08 184343.jpg


There is already some code which fills rows 3 & 4 and then calculates the difference using the 'Set' button.. I was hoping to use the same kind of thing....?

Would really appreciate any pointers :)
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Forum statistics

Threads
1,215,059
Messages
6,122,917
Members
449,093
Latest member
dbomb1414

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top