Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Modify Insert Object Macro


I need to modify the following macro so that it will pop up
the Insert Object dialog box, but not have Link to File or Display as icon
preselected.

Sub showDialog()
'INSERT.OBJECT?(object_class, file_name, link_logical,
' display_icon_logical, icon_file, icon_number, icon_label)
ExecuteExcel4Macro "INSERT.OBJECT?(,""C:\"",False,True,)"
End Sub
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Modify Insert Object Macro

When I tried to change the tab from "Create New" to "Create from File" with
your code my XL 2003 crashed. Maybe you can adapt the arguments in the
following to your needs -

Sub test()
Dim bOkCancel As Boolean
'args: object_class, file_name, link_logical, display_icon_logical, _
icon_file, icon_number, icon_label

bOkCancel = Application.Dialogs(xlDialogInsertObject).Show(, "c:\")

debug.? bOkCancel

End Sub

Regards,
Peter T

"mflowers" wrote in message
...
I need to modify the following macro so that it will pop up
the Insert Object dialog box, but not have Link to File or Display as icon
preselected.

Sub showDialog()
'INSERT.OBJECT?(object_class, file_name, link_logical,
' display_icon_logical, icon_file, icon_number, icon_label)
ExecuteExcel4Macro "INSERT.OBJECT?(,""C:\"",False,True,)"
End Sub



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i prepare a macro to insert drawing object on specific cell Harshad[_2_] Excel Discussion (Misc queries) 2 November 25th 08 08:06 AM
Macro to insert an object in a specific cell 2007` mpsears62 Excel Discussion (Misc queries) 2 July 7th 08 07:04 PM
Macro to Insert Object with browsing ability S Davis Excel Programming 4 May 9th 08 11:31 PM
Macro to insert a object in excel Lester from AUS[_2_] Excel Discussion (Misc queries) 5 March 28th 07 02:47 AM
Macro to insert object into spreadsheet ?? kluska Excel Programming 1 August 18th 06 09:19 PM


All times are GMT +1. The time now is 08:54 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"