novabond
New Member
- Joined
- Mar 26, 2022
- Messages
- 36
- Office Version
- 365
- Platform
- Windows
Hello.
I need to create a UserForm template, which includes 5 images, these images will eventually have pdf pictures loaded.
I will then need to creating about 30+ UserForms from this template, i can do this manually by importing the template and renaming it, and I know i can then go into each UserForm, and load Image pictures myself but, I wondered if there was code i could use, which would automatically do it for me, saving me time.
I am grateful to anyone who fancies having a go... we could start perhaps with these details
btw. i would not need to have files loaded to pictures in the images of the Template UserForm, i have only included them above in case, that makes a difference.
another idea i had but, i think this is maybe imposible, is for ever image to have there own CommandButton, which runs code that will change/update the Image Picture file, to the file name that the user can enter when prompted. But as i say, thought the research i have done today looking for existing code, It seems making the change stick around, i.e. even when the file location changes, isnt a simple thing to do... or maybe i am wrong?
Here is the best thread/code i have found to date, that i can adapt
but, wondered if someone could suggest code, that would do more what i want straight away.
thanks in advance!
Best
Bebe
I need to create a UserForm template, which includes 5 images, these images will eventually have pdf pictures loaded.
I will then need to creating about 30+ UserForms from this template, i can do this manually by importing the template and renaming it, and I know i can then go into each UserForm, and load Image pictures myself but, I wondered if there was code i could use, which would automatically do it for me, saving me time.
I am grateful to anyone who fancies having a go... we could start perhaps with these details
UserFormTEMP | UserFormNEW1 | UserFormNEW2 |
loaded: | load: | load: |
Image1 - c:\excel\pictures\fileone.jpg | Image1 - c:\excel\pictures\file1one.jpg | Image1 - c:\excel\pictures\file2one.jpg |
Image2 - c:\excel\pictures\filetwo.jpg | Image2 - c:\excel\pictures\file1two.jpg | Image2 - c:\excel\pictures\file2two.jpg |
Image3 - c:\excel\pictures\filethree.jpg | Image3 - c:\excel\pictures\file1three.jpg | Image3 - c:\excel\pictures\file2three.jpg |
Image4 - c:\excel\pictures\filefour.jpg | Image4 - c:\excel\pictures\file1four.jpg | Image4 - c:\excel\pictures\filefour.jpg |
Image5 - c:\excel\pictures\filefive.jpg | Image5 - c:\excel\pictures\file1five.jpg | Image5 - c:\excel\pictures\file2five.jpg |
btw. i would not need to have files loaded to pictures in the images of the Template UserForm, i have only included them above in case, that makes a difference.
another idea i had but, i think this is maybe imposible, is for ever image to have there own CommandButton, which runs code that will change/update the Image Picture file, to the file name that the user can enter when prompted. But as i say, thought the research i have done today looking for existing code, It seems making the change stick around, i.e. even when the file location changes, isnt a simple thing to do... or maybe i am wrong?
Here is the best thread/code i have found to date, that i can adapt
VBA - change image UserForm
Hi guys, I have inserted some images in the UserForm and I would like them to change depending on the checkbox I check. Do you think it is possible to do such a thing? Max
www.mrexcel.com
thanks in advance!
Best
Bebe