Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default attach file as icon in a worksheet (hope it's not so tricky)

i wish to create a button (from forms) and when click on it, it will pop up
the Insert Object dialog box, and automatically go to Create From File tab
with Display As Icon selected. Then it allows the user to select any file to
attach to the worksheet.

how do i do this with the button and macro? i hope it's not the tricky one
and appreciate experts out there can help.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default attach file as icon in a worksheet (hope it's not so tricky)

Not completely reliable, but:

SendKeys "{TAB}{TAB}{TAB}{TAB}{RIGHT}%a%n"
Application.Dialogs(xlDialogInsertObject).Show

--

Vasant



"jacko" wrote in message
...
i wish to create a button (from forms) and when click on it, it will pop

up
the Insert Object dialog box, and automatically go to Create From File tab
with Display As Icon selected. Then it allows the user to select any file

to
attach to the worksheet.

how do i do this with the button and macro? i hope it's not the tricky one
and appreciate experts out there can help.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default attach file as icon in a worksheet (hope it's not so tricky)

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


--
Regards,
Tom Ogilvy


"jacko" wrote in message
...
i wish to create a button (from forms) and when click on it, it will pop

up
the Insert Object dialog box, and automatically go to Create From File tab
with Display As Icon selected. Then it allows the user to select any file

to
attach to the worksheet.

how do i do this with the button and macro? i hope it's not the tricky one
and appreciate experts out there can help.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default attach file as icon in a worksheet (hope it's not so tricky)

Nice one, Tom!

Regards,

Vasant

"Tom Ogilvy" wrote in message
...
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


--
Regards,
Tom Ogilvy


"jacko" wrote in message
...
i wish to create a button (from forms) and when click on it, it will pop

up
the Insert Object dialog box, and automatically go to Create From File

tab
with Display As Icon selected. Then it allows the user to select any

file
to
attach to the worksheet.

how do i do this with the button and macro? i hope it's not the tricky

one
and appreciate experts out there can help.





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default attach file as icon in a worksheet (hope it's not so tricky)

Excellent!!! Billions thanks to Tom!! and Vasant too!

"Tom Ogilvy" wrote:

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


--
Regards,
Tom Ogilvy


"jacko" wrote in message
...
i wish to create a button (from forms) and when click on it, it will pop

up
the Insert Object dialog box, and automatically go to Create From File tab
with Display As Icon selected. Then it allows the user to select any file

to
attach to the worksheet.

how do i do this with the button and macro? i hope it's not the tricky one
and appreciate experts out there can help.




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 to attach file vmohan1978 Excel Worksheet Functions 5 December 3rd 09 06:55 PM
HOW TO CHANGE THE ICON OF AN EXCEL WORKSHEET FILE? STEPLER Excel Discussion (Misc queries) 0 March 15th 07 08:09 PM
How do I copy a file and attach a date to the name of the file hccatmo Excel Discussion (Misc queries) 1 February 23rd 07 08:21 PM
can i attach an excel icon to a word doc jamesy Excel Discussion (Misc queries) 2 February 17th 06 01:49 PM
Open a workbook listed in a different worksheet (hope this is clearer!) nickyboy[_2_] Excel Programming 0 September 3rd 04 09:23 AM


All times are GMT +1. The time now is 12:58 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"