Hello Goofy78270,
You don't say if you are using a Query Table to refresh your database, but since you are asking about refresh periods, my assumption is you are. Here is an example...
Worksheets("Sheet1").Range("A10").QueryTable.Refresh
A10 is a cell that intersects with the Query Table. This way you don't have to remember the Query Table index for that area, since you can have more than one Query Table per worksheet.
You can use this same strategy to the refresh time in minutes...
Dim T As Long
T = Worksheets("Sheet1").Range("A10").QueryTable.RefreshPeriod
Sincerely,
Leith Ross
Bookmarks