Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to insert picture in excel cell
#2
Solved: 10 Years, 9 Months, 3 Weeks ago
This should give the error at the Range("B9").select statement only.

this will work in VBA macro but you can not use this way in automation. also the the next statment, where does the objWorkSheet1 declared.
replace your code with the below and try
Code:
objWorkbook1.ActiveSheet.range("B9").Select

objWorkbook1.ActiveSheet.Pictures.Insert("C:\Documents and Settings\msafiullah\Desktop\error.bmp")

Reply


Messages In This Thread
RE: How to insert picture in excel cell - by Saket - 10-21-2010, 01:07 PM
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,716 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,725 01-17-2017, 04:05 PM
Last Post: sagar.raythatha
  Unable to insert data into datatable Prashanth 1 3,473 05-10-2013, 03:07 PM
Last Post: Saket
  insert call to new action bistritapcv 1 2,466 04-06-2013, 12:09 PM
Last Post: ravi.gajul
  how to insert error msg in a datatable using Dp? zakshah.12 0 1,890 03-05-2013, 07:49 AM
Last Post: zakshah.12

Forum Jump:


Users browsing this thread: 1 Guest(s)