Re: Is there a way to Pass a image between sheets using =IND
No. You both are missing information!
You can use Functions to access Objects!
And, you can do it now from Sheet Functions!
You must define a "User Defined Function" [UDF] to do it though!
Your UDF will work just like any Excel sheet function, only you determin how it works!
Below is a pair of "Sub's" these "Add" a standard shape and re-name that shape to avoid the index problems [This is important]. The other Sub is not used but is included here so you can see hoe to delete your re-named shape bu code!
Next you create your user defined function. Here I simply use the sheet function to pass the name of the shape object I want to work with to VBA code!
The worksheet syntax is =SShape("YourShapesNameHere")
Note: the actual sheet function will be entered as:
=SShape("4PointStar1")
Which will select the shape object you named-called from your UDF sheet function where ever it is!
Hence you can work with objects from functions!
Option Explicit
'This is the UDF's passed re-name for the shape object!
Public fShapeName As String
Sub myAdd4PointStar1()
'Run from Standard Module#.
Application.CommandBars("AutoShapes").Visible = False
With ActiveSheet.Shapes.AddShape(msoShape4pointStar, _
321.75, 201#, 102#, 86.25)
.Name = "4PointStar1"
End With
Range("A1").Select
End Sub
Sub myRemove4PointStar1()
'Run from Standard Module#.
Application.CommandBars("AutoShapes").Visible = False
ActiveSheet.Shapes("4PointStar1").Delete
'ActiveSheet.Shapes("msoShape4pointStar").Select 'this is renamed an add.
Range("A1").Select
End Sub
Function SShape(itsName)
'Custom User Defined Function, UDF.
'You can use this like any SheetFunction.
'Selects a shape.
'Store in Standard Module, like: Module1.
'WorkSheet UDF function syntax, =SShape("YourShapesNameHere")
'Note: Your shapes name in SShape, [YourShapesNameHere] must be in quotes!
SShape = itsName
fShapeName = SShape
ActiveSheet.Shapes(fShapeName).Select
End Function