Hi everyone,
First of all, great site. I've had sooo many questions answered here that I can't thank enough.
But, for the first time after looking everywhere, there is one i can't seem to have answered.
I'm an engineer and I've used excel macros for a very long time to automate my workflow or illustrate results, so while I don't think of myself and a coding expert (or anywhere near that), I've accumulated some knowledge over time and have never found anything I couldn't do (or work around of), more often than not with your help.
For the first time after looking everywhere, there is one issue I can't seem to have answered.
I have an excel macro that when the workbook activates, draws a shape occupying the entire screen via
, fills it with a picture via
and shows a userform with a menu.
The way I intended for it to work was so the picture would show up before the userform (hence after excel's spalshscreen and after itself has been drawn on screen). But what inevitably happens is that my menu (userform) shows up even before excel's splash screen.
In userforms I've found a workaround by loading the pictures onto a variable beforehand, when loading then in the initialize procedure of the form isn't enough, but for the shapes ".Fill.UserPicture" i can't get feedback like I would on a "while picVar Is Nothing".
Anyone has any ideas? I could put the picture in a form but since my macro revolves around shapes in the worksheet, I would rather keep it has it is.
Even if I couldn't change the fact that the userform would show up before, knowing when the image appears would allow me to do some kind of loading screen.
Thank you all! If not for this one, for all the questions you answered me unkowingly.
Cheers,
Tiago
First of all, great site. I've had sooo many questions answered here that I can't thank enough.
But, for the first time after looking everywhere, there is one i can't seem to have answered.
I'm an engineer and I've used excel macros for a very long time to automate my workflow or illustrate results, so while I don't think of myself and a coding expert (or anywhere near that), I've accumulated some knowledge over time and have never found anything I couldn't do (or work around of), more often than not with your help.
For the first time after looking everywhere, there is one issue I can't seem to have answered.
I have an excel macro that when the workbook activates, draws a shape occupying the entire screen via
Code:
.Shapes.AddShape(msoShapeRectangle, 0, 0, screenX, screenY)
Code:
.Fill.UserPicture (ActiveWorkbook.Path & "\Images\BGs\mainMenuBG.jpg")
The way I intended for it to work was so the picture would show up before the userform (hence after excel's spalshscreen and after itself has been drawn on screen). But what inevitably happens is that my menu (userform) shows up even before excel's splash screen.
In userforms I've found a workaround by loading the pictures onto a variable beforehand, when loading then in the initialize procedure of the form isn't enough, but for the shapes ".Fill.UserPicture" i can't get feedback like I would on a "while picVar Is Nothing".
Anyone has any ideas? I could put the picture in a form but since my macro revolves around shapes in the worksheet, I would rather keep it has it is.
Even if I couldn't change the fact that the userform would show up before, knowing when the image appears would allow me to do some kind of loading screen.
Thank you all! If not for this one, for all the questions you answered me unkowingly.
Cheers,
Tiago