Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to insert picture in excel cell
#5
Solved: 11 Years, 4 Months, 4 Weeks ago
Hi,

We can not enlarge the picture by clicking on a cell. This can be done using a hyperlink.

There is a possiblities to insert an hyperlink which reffers to a path, below is the code

Code:
path_error_file = "C:\Documents and Settings\msafiullah\Desktop\\error.bmp"
nName = "ScreenShot"
Desktop.CaptureBitmap path_error_file,True

ExlFormula = "=HYPERLINK("&chr(34)&path_error_file&chr(34)&","&chr(34)&nName&chr(34)&")"
Set Excel = createobject("Excel.Application")
Set oBook = Excel.Workbooks.Open ("c:\MyExcel.xls")
oBook.ActiveSheet.cells(1,1).Formula = ExlFormula
oBook.Save
oBook.Close
-- Vinod
Reply


Messages In This Thread
RE: How to insert picture in excel cell - by KVK - 10-26-2010, 02:35 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Add picture to Excel From UFT eiko 0 1,967 02-10-2018, 12:39 AM
Last Post: eiko
  How import final calculated values by cell formula from Excel not the formula itself. qtped 1 4,899 01-17-2017, 04:05 PM
Last Post: sagar.raythatha
  Unable to insert data into datatable Prashanth 1 3,654 05-10-2013, 03:07 PM
Last Post: Saket
  insert call to new action bistritapcv 1 2,608 04-06-2013, 12:09 PM
Last Post: ravi.gajul
  how to insert error msg in a datatable using Dp? zakshah.12 0 2,043 03-05-2013, 07:49 AM
Last Post: zakshah.12

Forum Jump:


Users browsing this thread: 3 Guest(s)