Anand Marsh
Anand Marsh

Reputation: 1

Show "loading" userform whilst another userform runs a routine in the background

I have a series of userforms (the intention is that there will be no interaction with spreadsheets) and i need one userform to run script in the background whilst another userform/window pops up and lets the user kmnow that the operation will take some time.

This is used in multiple instances (e.g. combobox_change with a label updating its value based on a loop that goes through 25k-30k lines).

I have tried:

  1. code as per below (which throws back an error as (i believe) there can be a modal=True and Modal=False userform running concurrently: z_loading.Show vbModeless

z_loading.StartupPosition = 1

'additional vba routine here

Unload z_loading

  1. restructuring the location of code

Upvotes: 0

Views: 367

Answers (1)

Anand Marsh
Anand Marsh

Reputation: 1

Apologies - found the solution.

Modal was true for all userforms. By making modal false the .vbmodeless method works.

Upvotes: 0

Related Questions