Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default code to move images

Hi to all;

I've inserted some images in excel with the "desgn mode"; which code do I
have to write in a VB Macro, or property have to change in order to be able
to move these images without being in the "design mode"?

Thanks to all!
--
atrep
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default code to move images

for each shp in activesheet.shapes
shp.left = a
shp.top = b
shp.width = c
shp.height. = d

next shp
where a,b,c,d is in pixels


"xavi garriga" wrote:

Hi to all;

I've inserted some images in excel with the "desgn mode"; which code do I
have to write in a VB Macro, or property have to change in order to be able
to move these images without being in the "design mode"?

Thanks to all!
--
atrep

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default code to move images

Turn on the macro recorder and move them manually. Then turn off the macro
recorder. Then use that code as a model - modify it to do what you want.

That code should run without being in the "design mode"

--
Regards,
Tom Ogilvy


"xavi garriga" wrote:

Hi to all;

I've inserted some images in excel with the "desgn mode"; which code do I
have to write in a VB Macro, or property have to change in order to be able
to move these images without being in the "design mode"?

Thanks to all!
--
atrep

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default code to move images

Hi to all!

Thanks for the responses, I've tried them, and workperfectly, but they are
not exacly what I want, maybe I should explain me better(sorry, my English
can be much better :P)

I have a CommandButton that makes appear and disappear some images depending
on some conditions, what I want to do is to move the images that are visible;
I want to treat with this images like a normal pictures, this should be able
to resize, move, copy, paste...all of it wothout being in the "design
Mode"(if it is posible)

I hope this explanation is better than the previous one;

Thanks to all and kind regards;
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
When reopening document, images move BWill Excel Discussion (Misc queries) 1 December 17th 09 07:19 PM
Objects & images move when viewing in print preview or printing. Wiseman Excel Discussion (Misc queries) 2 November 2nd 09 06:49 PM
Images move on its own EXCEL Excel Discussion (Misc queries) 1 November 14th 08 09:25 AM
prop. scale images - have code, just need slight mod cml0904[_3_] Excel Programming 1 August 19th 06 12:21 AM
Can I move images in Excel forms? Andy_G[_2_] Excel Programming 1 June 9th 05 07:31 PM


All times are GMT +1. The time now is 04:46 PM.

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

About Us

"It's about Microsoft Excel"