Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,069
Default Insert, position, and resize a picture w/ Macro

I'm completely out of my league here. I can do most basic functions when
dealing with macros, but I need to insert a picture to a specific place in a
document. Then, I need to resize it down to half the current size of the
picture.

Can anyone help me figure out how to get a macro to do that in Excel 2003?

Thanks!
John
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,123
Default Insert, position, and resize a picture w/ Macro

You can try this
you see it will make the picture the same size as the cell now.
If you know how gig you want it you can fill in the width and height in the code

Sub Test()
Dim myPict As Picture

With ActiveSheet.Range("C1")
Set myPict = .Parent.Pictures.Insert("C:\ron.png")
myPict.Top = .Top
myPict.Width = .Width
myPict.Height = .Height
myPict.Left = .Left
myPict.Placement = xlMoveAndSize
End With
End Sub


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"John" wrote in message ...
I'm completely out of my league here. I can do most basic functions when
dealing with macros, but I need to insert a picture to a specific place in a
document. Then, I need to resize it down to half the current size of the
picture.

Can anyone help me figure out how to get a macro to do that in Excel 2003?

Thanks!
John

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
how do I insert picture into cell so vlookup can return picture? ah Excel Worksheet Functions 1 May 1st 07 04:38 AM
How to keep picture position for different versions of Excel? Simon Kwong Excel Discussion (Misc queries) 2 April 15th 07 03:08 AM
insert a picture in to a comment but picture not save on hard disk Pablo Excel Discussion (Misc queries) 0 February 21st 07 03:48 PM
Set up menu to resize picture upon right click Cavan Rothwell Excel Discussion (Misc queries) 1 July 3rd 06 08:21 PM
Position Picture with macro G Setting up and Configuration of Excel 1 November 28th 05 07:25 PM


All times are GMT +1. The time now is 02:48 PM.

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"