daniel_dani95
New Member
- Joined
- Jan 30, 2023
- Messages
- 16
- Office Version
- 365
- Platform
- Windows
I'm working on a multiple choice quiz for various subjects. Some of the questions have figures that go with them without which you can't solve the question. The problem I have is that i'm not sure how to specify picture path since it is intended to be sent to people who will download the file in various locations (which changes the specified path).
Now, my idea was to use worksheet which has all the figures listed with their names and then when excel generates random questions, if they have figure with them, VLOOKUP searches the table and brings back the picture. But I can't seem to be able to load the picture automatically into UserForm (as all the other operations are going in the background and only test form is visible to the user). I've tried with
and
but nothing happens when i open the user form again, picture box is still empty.
Can anyone help with this as it's the only thing left to do before i have full working test
Now, my idea was to use worksheet which has all the figures listed with their names and then when excel generates random questions, if they have figure with them, VLOOKUP searches the table and brings back the picture. But I can't seem to be able to load the picture automatically into UserForm (as all the other operations are going in the background and only test form is visible to the user). I've tried with
VBA Code:
Image1.Picture=Sheet1.Range("Z2").Value
VBA Code:
Image1.Picture=Sheet1.Range("Z2").Picture
Can anyone help with this as it's the only thing left to do before i have full working test