Copy each control & rename

  • Thread starter Thread starter Jason Morin
  • Start date Start date
J

Jason Morin

Not sure why "copy" is not an offered method for controls.
Anyhow, I'm trying to copy and paste a group of images on
my userform (destination is not important right now) and
have them renamed. Each image name begins with "d1_". I
simply need to copy and paste each image - the only thing
that will change is that I need replace the first 3 char.
of the name (for example, from "d1_7777" to "d2_7777").

Thx.
Jason
 
Images are loaded into an image control. They aren't copied and pasted.

Image1.Picture = LoadPicture("C:\Windows\Desktop\hi.bmp")

You can build your file name as part of the string argument to LoadPicture
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top