PC Review


Reply
Thread Tools Rate Thread

code to move images

 
 
xavi garriga
Guest
Posts: n/a
 
      17th Dec 2007
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
 
Reply With Quote
 
 
 
 
Joel
Guest
Posts: n/a
 
      17th Dec 2007
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

 
Reply With Quote
 
Tom Ogilvy
Guest
Posts: n/a
 
      17th Dec 2007
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

 
Reply With Quote
 
xavi garriga
Guest
Posts: n/a
 
      17th Dec 2007
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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I move images in Word? Matt D Microsoft Word Document Management 1 29th Apr 2010 03:26 PM
Images move on its own EXCEL Microsoft Excel Misc 0 12th Nov 2008 09:24 PM
How do I move images wherever I want? =?Utf-8?B?cnU=?= Microsoft Word New Users 3 27th Apr 2006 02:01 AM
code to delete a user/ code to move users into and out of groups =?Utf-8?B?dHc=?= Microsoft Access Security 11 30th May 2005 06:59 AM
Move RIS images Martin H Microsoft Windows 2000 Deployment 1 21st Jul 2004 03:42 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:14 AM.