Display message during data import

dmacmillan

Board Regular
Joined
Apr 5, 2004
Messages
125
Hi All,

I want to display a "Data Refreshing" message that runs for 1 minute every half-hour while data is being imported from a .CSV file. The importation has been set-up in the Data Connections tab and not driven from VBA. My investigations lead to using a combination of Application.OnTime and a Modeless UserForm.

Is this the best approach?

Thank you in advance,
David
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
That is the approach that I use, but I don't know if it is the best practice.

Of course you shall remove the property "update every 30 minutes" and instead use a vba driven refres, putting something similar to this in your "On Time" macro:
Code:
ActiveSheet.QueryTables(1).refresh

Also, rather than having the message shown for 1 minute, you shall show the modeless form with the message, start the data refresh (instruction above) and then hide the form; so it may show for 5 seconds or 2 minutes, depending on how long refreshing the data will last.
This requires that also the property "Allow background refresh" be removed (I am nor sure which is the english name for this property, look for something similar to what I wrote).

Bye
 
Upvote 0

Forum statistics

Threads
1,224,525
Messages
6,179,317
Members
452,905
Latest member
deadwings

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