Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
I'm trying to create a button that replicates InsertObject, then from file as icon. I've tried recording the action but it either record nothing if i choose no file, or the test file location but then i can figure out how to make sort of prompt? Does anyone know who to do this? All help is appreciated -- _______________________ Naz, London |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You can open a dailog method like below
dlgAnswer = Application.Dialogs(xlDialogOpen).Show "Naz" wrote: Hi I'm trying to create a button that replicates InsertObject, then from file as icon. I've tried recording the action but it either record nothing if i choose no file, or the test file location but then i can figure out how to make sort of prompt? Does anyone know who to do this? All help is appreciated -- _______________________ Naz, London |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Joel thanks
But where would i put that line in the code Sub Uploader() Workbooks.Open Filename:="C:\Book1.xls" ActiveWindow.Visible = False ActiveSheet.OLEObjects.Add(Filename:= _ "C:\Book1.xls", Link:=False, _ DisplayAsIcon:=True, IconFileName:= _ "C:\WINDOWS\Installer\{90110409-6000-11D3-8CFE-0150048383C9}\xlicons.exe", _ IconIndex:=0, IconLabel:="C:\Book1.xls" _ ).Select End Sub -- _______________________ Naz, London "Joel" wrote: You can open a dailog method like below dlgAnswer = Application.Dialogs(xlDialogOpen).Show "Naz" wrote: Hi I'm trying to create a button that replicates InsertObject, then from file as icon. I've tried recording the action but it either record nothing if i choose no file, or the test file location but then i can figure out how to make sort of prompt? Does anyone know who to do this? All help is appreciated -- _______________________ Naz, London |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Insert new Worksheet with name, and insert the sheet into itsalphabetical / numerical location | Excel Programming | |||
Macro to insert copy and insert formulas only to next blank row | Excel Programming | |||
Can I auto insert a worksheet when I insert a value in a cell. | Excel Worksheet Functions | |||
Insert cell/format/text/fontsize and auto insert into header? | Excel Programming | |||
Connection Obect for Two Paths | Excel Programming |