Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Inserting a picture macro

I have created a macro that will allow the user to insert a picture and
resize it.

Sub Insert_pic()
'
' Insert_pic Macro
' Macro recorded 6/23/2006 by pricek
'

Const PW As String = "fire" 'Change Password Here
ActiveSheet.Unprotect Password:=PW
Range("a5:z5").Select

Application.Dialogs(xlDialogInsertPicture).Show
'ActiveSheet.Shapes.Select
Selection.ShapeRange.LockAspectRatio = msoFalse
Selection.ShapeRange.Height = 250#
Selection.ShapeRange.Width = 475#
ActiveSheet.Protect Password:=PW
End Sub

Once the picture is inserted, I need to save it to a specified folder
and I also want it to have a specified name. They should only be able
to add one picture, so if additional pictures are added it should
overwrite the first picture. I have setup additional buttons to allow
the user to rotate it, which is based on the specified name.

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
Inserting a Picture using Cell as picture name. the-jackal Links and Linking in Excel 12 November 10th 08 09:21 AM
Inserting a picture Boban76 Excel Discussion (Misc queries) 2 July 19th 06 02:56 PM
Inserting a picture comotoman Excel Discussion (Misc queries) 3 October 16th 05 02:02 PM
get a picture width and height without inserting the picture Dorothy Excel Programming 1 January 13th 05 05:06 AM
Inserting picture in footer with macro Martin[_13_] Excel Programming 2 May 13th 04 03:24 PM


All times are GMT +1. The time now is 05:22 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"