Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Formula to Embed a file object in my excel sheet.

Hi,

I want to embed(insert) a file object in my current sheet from a external
Java program. Is there any formula to perform this operation ?

Thanks.
Regards,
Hemil
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Formula to Embed a file object in my excel sheet.

If you mean to create a link you can use the below formula
=hyperlink(link_location,friendly_name)

If you are looking to embed a file then try the below macro. If you are new
to macros..

--Set the Security level to low/medium in (Tools|Macro|Security).
--From workbook launch VBE using short-key Alt+F11.
--From menu 'Insert' a module and paste the below code.
--Get back to Workbook.
--Run macro from Tools|Macro|Run <selected macro()

'Change the <asd to file fullpath and filename
Sub Macro3()
ActiveSheet.OLEObjects.Add Filename:="<fullpath and filename within
quotes", _
Link:=False, DisplayAsIcon:=True
End Sub

If this post helps click Yes
---------------
Jacob Skaria


"Hemil" wrote:

Hi,

I want to embed(insert) a file object in my current sheet from a external
Java program. Is there any formula to perform this operation ?

Thanks.
Regards,
Hemil

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Formula to Embed a file object in my excel sheet.

Hi,

I cannot use Macros as it cannot be invoked from my library. I need some
function which can be executed to embed objects.

"Jacob Skaria" wrote:

If you mean to create a link you can use the below formula
=hyperlink(link_location,friendly_name)

If you are looking to embed a file then try the below macro. If you are new
to macros..

--Set the Security level to low/medium in (Tools|Macro|Security).
--From workbook launch VBE using short-key Alt+F11.
--From menu 'Insert' a module and paste the below code.
--Get back to Workbook.
--Run macro from Tools|Macro|Run <selected macro()

'Change the <asd to file fullpath and filename
Sub Macro3()
ActiveSheet.OLEObjects.Add Filename:="<fullpath and filename within
quotes", _
Link:=False, DisplayAsIcon:=True
End Sub

If this post helps click Yes
---------------
Jacob Skaria


"Hemil" wrote:

Hi,

I want to embed(insert) a file object in my current sheet from a external
Java program. Is there any formula to perform this operation ?

Thanks.
Regards,
Hemil

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Formula to Embed a file object in my excel sheet.

There is no inbuilt function in excel to embed an object.

From menu InsertObjectCreate from File
Browse to navigate to folder and select the file
InsertCheck 'Display as icon' and hit OK.

If this post helps click Yes
---------------
Jacob Skaria


"Hemil" wrote:

Hi,

I cannot use Macros as it cannot be invoked from my library. I need some
function which can be executed to embed objects.

"Jacob Skaria" wrote:

If you mean to create a link you can use the below formula
=hyperlink(link_location,friendly_name)

If you are looking to embed a file then try the below macro. If you are new
to macros..

--Set the Security level to low/medium in (Tools|Macro|Security).
--From workbook launch VBE using short-key Alt+F11.
--From menu 'Insert' a module and paste the below code.
--Get back to Workbook.
--Run macro from Tools|Macro|Run <selected macro()

'Change the <asd to file fullpath and filename
Sub Macro3()
ActiveSheet.OLEObjects.Add Filename:="<fullpath and filename within
quotes", _
Link:=False, DisplayAsIcon:=True
End Sub

If this post helps click Yes
---------------
Jacob Skaria


"Hemil" wrote:

Hi,

I want to embed(insert) a file object in my current sheet from a external
Java program. Is there any formula to perform this operation ?

Thanks.
Regards,
Hemil

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
Embed object icon missing text and image CWilminko Excel Discussion (Misc queries) 0 March 5th 09 08:08 PM
Hyperlink to Embed Object brent Links and Linking in Excel 1 February 20th 07 04:02 PM
can't use the control toolbox in excel to embed a flash object cante Excel Discussion (Misc queries) 0 August 7th 06 08:07 AM
How do I embed an object into a specific cell in Excel? fish Excel Discussion (Misc queries) 0 June 15th 05 12:16 PM
How can I embed a file as an unopened object in a worksheet or wo. Goat Boy Excel Discussion (Misc queries) 1 January 4th 05 11:58 PM


All times are GMT +1. The time now is 05:20 AM.

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

About Us

"It's about Microsoft Excel"