Hello,
i'm using this code for insert an object but when you click cancel instead of insert it will give Run time error 1004 cannot insert an object.
Sub Macro1()
Dim FName As String
FName$ = Application.GetOpenFilename
ActiveSheet.OLEObjects.Add(Filename:=FName, _
Link:=False, _
DisplayAsIcon:=False).Select
End Sub
and how can i specify in which cell and sheet name i want to be added not at the active one ?
also because this macro is assigned to a command button is it possible when the file has been attached the text of the command button to change to "ok"
Thanks for the help in advance.
Bookmarks