PC Review


Reply
Thread Tools Rate Thread

Adding Picture to Excel Spreadsheet Programatically - Using VB 6

 
 
Tushar
Guest
Posts: n/a
 
      9th Apr 2008
How can we insert picture in EXCEL worksheet using Visual Basic 6? I am able
to enter values in the cells. now I want to insert a picture inside
worksheet. kindly help,
 
Reply With Quote
 
 
 
 
affordsol
Guest
Posts: n/a
 
      9th Apr 2008
Hello,

Sub InsertPicture()
ActiveSheet.Pictures.Insert( _
"C:\Documents and Settings\Hervé Hanuise\My Documents\My
Pictures\!chimneysanta.gif" _
).Select
End Sub

where the fully pathed image file is :
"C:\Documents and Settings\Hervé Hanuise\My Documents\My
Pictures\!chimneysanta.gif"

Hope this helps

--
Herve Hanuise
http://www.affordsol.be


"Tushar" wrote:

> How can we insert picture in EXCEL worksheet using Visual Basic 6? I am able
> to enter values in the cells. now I want to insert a picture inside
> worksheet. kindly help,

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding Picture to Locked Spreadsheet The Merg Microsoft Excel Misc 0 20th May 2008 09:52 PM
Programatically access Excel 2003 spreadsheet Edward Diener Microsoft Excel Programming 3 8th Aug 2006 03:28 PM
Programatically saving XML file as Excel spreadsheet ANN Microsoft Excel Programming 0 22nd Apr 2004 09:55 PM
Excel crashing when (programatically) adding past the 360th worksheet to a workbook Scott Lyon Microsoft Excel Programming 2 14th Aug 2003 12:34 PM
Programatically adding worksheets to a spreadsheet Scott Lyon Microsoft Excel Programming 4 8th Aug 2003 02:54 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:14 AM.