LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default changing a macro so it's not cell specific

I recorded a macro to be able to insert a picture from our network
drive and it works well. However I would like to be able to change the
picture identification (idxxxxxx) and picture (jpg) for different
accounts while still using the same spreadsheet form. Does anyone know
how to help? Below is the marco I would like to change.

Sub SubjectPhoto()
'
' SubjectPhoto Macro
' Macro recorded 10/31/2007 by
'

'
ActiveSheet.Unprotect
Range("AE7").Select
ActiveSheet.Pictures.Insert( _
"\\server1\documents\Value Adjustment Board
\id064410.jpg").Select
Selection.ShapeRange.LockAspectRatio = msoTrue
Selection.ShapeRange.Height = 275.25
Selection.ShapeRange.Width = 364.5
Selection.ShapeRange.Rotation = 0#
Selection.ShapeRange.LockAspectRatio = msoTrue
Selection.ShapeRange.Height = 215.25
Selection.ShapeRange.Width = 285#
Selection.ShapeRange.Rotation = 0#
Selection.ShapeRange.IncrementLeft -72#
Selection.ShapeRange.IncrementTop -51.75
Selection.ShapeRange.IncrementLeft -3#
Range("C8").Select
ActiveSheet.Protect DrawingObjects:=True, Contents:=True,
Scenarios:=True
End Sub
 
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 to run an event upon changing the value of a specific cell? Wael Fathy Excel Worksheet Functions 1 February 23rd 10 02:04 PM
Code to copy the formulae of one cell to all the cell in the rangewith the specific cell and columnnumber changing Options Yuvraj Excel Discussion (Misc queries) 0 June 29th 09 11:20 AM
Code to copy the formulae of one cell to all the cell in the rangewith the specific cell and columnnumber changing Yuvraj Excel Discussion (Misc queries) 0 June 26th 09 06:01 PM
Changing the Color of Specific Characters using a Macro Frustrated IT Tech Excel Worksheet Functions 6 April 26th 08 05:19 PM
Copying autofiltered data to a specific (changing) row using a macro [email protected] Excel Programming 0 May 6th 06 05:57 PM


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