Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to use the content of a cell as a file name
I Like to have a macro that looks at the content of a specific cell in the
sheet to get the file name neede to insert the picture in a specific cell. This would be same function for all the sheets except sheet(cover). Here is the recorded macro: ActiveSheet.Unprotect Range("E2:H18").Select ActiveSheet.Pictures.Insert( _ """" this is where I want to unsert the cell that has file name"""' "C:\Documents and Settings\Vince Aragona\My Documents\My Pictures\101MSDCF\101MSDCF\DSC00002.JPG" _ ).Select Selection.ShapeRange.LockAspectRatio = msoTrue Selection.ShapeRange.Height = 216# Selection.ShapeRange.Width = 288# Selection.ShapeRange.Rotation = 0# Any help would be greatly appreciated. -- CY |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
HDI set cell content as the default file name for a new Excel wb | Excel Discussion (Misc queries) | |||
link cell content to another file | Excel Discussion (Misc queries) | |||
Assign Cell Content As File Name | Excel Programming | |||
Save as using cell content in file name | Excel Programming | |||
Automatic File Name based on cell content | Excel Programming |