While userform open do events timely basis

CsJHUN

Active Member
Joined
Jan 13, 2015
Messages
360
Office Version
  1. 365
  2. 2021
  3. 2019
Platform
  1. Windows
  2. Mobile
Hi boardlies

I will have 2 excel file, 1-1 sheet in each, both will have open userform.
Lets say "A" is for data registering, and "B" is for showing that data. I would like to import data to "B" for each minutes.
"A" use userform to input data to "A" excel, what should be visualised on "B" excel and userform.

This is how i started:
Like said above: "A" use userform buttons, to register data with timestamp to "A" excel file, and save the file each time the user input data.
where i stuck: How can "B" read the "A" file once in every minutes while userform in "B" open (than do some other stuffs, but that shouldn't be problem)
Thanks in advance
J
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Figured out:
VBA Code:
Private Sub UserForm_Initialize()
lbl_time.Caption = Format(Now, "yyyy-mm-dd hh:nn:ss") 'just for checking and showing its updated
re_read_db:
    time_gap= #12:01:00 AM#
    a = Now
    Do
    b = Now
    DoEvents
    Loop Until b >= a + time_gap
'here i put other privatre subs what sould be done
GoTo re_read_db
End Sub

the userform querry close will unload the userform, so this should be killed
 
Upvote 0

Forum statistics

Threads
1,215,016
Messages
6,122,700
Members
449,092
Latest member
snoom82

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