Thanks Myrna! I actually just finished creating a little sub that uses the
functions provided at
http://www.4guysfromrolla.com/webtech/050300-1.shtml
If anyone is interested I'll post what I did with it. This can essentially
be used to get the dims of your images for a dynamic web page or
something..at least that is what I'm using it for. I have the code looking
for specifically named images--those that end in "sm.jpg", but obviously you
could change that or take it out if you want every image. Cheers!
Sub GetMyDims()
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objF = objFSO.GetFolder("C:\Images\")
Set objFC = objF.Files
p = 1
For Each f1 In objFC
If gfxSpex(f1.Path, w, h, c, strType) = True Then
If Right(f1.Name, 6) = "sm.jpg" Then
p = p + 1
myname = "A" & p
mywidth = "B" & p
myheight = "C" & p
Range(myname).Select
ActiveCell.FormulaR1C1 = f1.Name
Range(myheight).Select
ActiveCell.FormulaR1C1 = h
Range(mywidth).Select
ActiveCell.FormulaR1C1 = w
End If
End If
Next
Set objFC = Nothing
Set objF = Nothing
Set objFSO = Nothing
End Sub