Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Copy each control & rename

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Copy each control & rename

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

--
Regards,
Tom Ogilvy

"Jason Morin" wrote in message
...
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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro: Copy a worksheet and rename it to a specified value mitch Excel Discussion (Misc queries) 2 February 16th 09 05:43 PM
Copy worksheet and rename sheet Ernst - EXE Graphics Excel Discussion (Misc queries) 4 July 25th 08 01:18 PM
How do you copy and rename linked worksheets? Phil 51 Excel Discussion (Misc queries) 1 June 6th 06 04:11 PM
Copy/Rename a sheet DK Links and Linking in Excel 1 March 20th 06 05:36 AM
Copy and rename files from hyperlink Andy Weller Excel Programming 1 February 12th 04 03:51 PM


All times are GMT +1. The time now is 07:52 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"