Web Query Change apoun cell value change

nikimitsy

Board Regular
Joined
Jun 5, 2013
Messages
132
i have a web query which i run every 30min. here it is below

HTML:
https://docs.google.com/spreadsheets/d/1IJI83Lu-KDzIJigb6DDHrRiuo0jngpsBG9yyMHefSJ4/gviz/tq?tqx=out:html&gid=343315703&tq=select%20A%2CB%2CC%2CD%2CE%20WHERE%20C%3D%22Week%2036%22

what i would like to be able to do is have the last "Week%2036%22" be the value of a cell. and how i would come up with that value is CONCATENATE cells with text value and weeknum. so i deally i would like to run my web query as per the week number. is this possible this is the code i am using to run my query

Code:
Sub RefreshWebQuery_Data()     '
     ' Macro3 Macro
     ' Macro recorded 2/4/2014 by BPettis
     '
    On Error Resume Next
     '
     '    Application.DisplayAlerts = False
    Debug.Print Now() & Chr(9) & "RefreshWebQuery_Data"
    Worksheets("DATA").Range("A1").QueryTable.Refresh BackgroundQuery:=False
    Application.OnTime Now() + TimeValue("00:30:00"), "RefreshWebQuery_Data"
    Application.DisplayAlerts = True
    Exit Sub
     
End Sub

my web query is named Data
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

Forum statistics

Threads
1,215,545
Messages
6,125,450
Members
449,227
Latest member
Gina V

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