zapBranigan
Technical User
Hello guys,
Here is my problem:
My first column contains different numerical values.
All numerical value have a matching picture.
The picture's filename is basically composed of the value + a unkown character in front of them.
So I would like to insert the picture file matching the value in column A without having to deal with the first character of the filename.
Here is my code:
If ActiveSheet.Cells(x, 1) > 30000 Then
pic = ActiveSheet.Cells(x, 1).Value
pic = "I:\all sketches\" & pic & ".pcx"
ActiveSheet.Cells(x, 2).Select
ActiveSheet.Pictures.Insert(pic).Select
End If
Can anyone Help me ???
Thank you for your time,
Zap
Here is my problem:
My first column contains different numerical values.
All numerical value have a matching picture.
The picture's filename is basically composed of the value + a unkown character in front of them.
So I would like to insert the picture file matching the value in column A without having to deal with the first character of the filename.
Here is my code:
If ActiveSheet.Cells(x, 1) > 30000 Then
pic = ActiveSheet.Cells(x, 1).Value
pic = "I:\all sketches\" & pic & ".pcx"
ActiveSheet.Cells(x, 2).Select
ActiveSheet.Pictures.Insert(pic).Select
End If
Can anyone Help me ???
Thank you for your time,
Zap