Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Inserting an Image in an Excel sheet using VBScript.

Hi..
I've to insert an image in excel sheet using VBSCript.
Can anyone please guide me ?

Vishal

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Inserting an Image in an Excel sheet using VBScript.

range("B9").Select
ActiveSheet.Pictures.Insert( _
"C:\My Pictures\Sample.jpg")

--
Regards,
Tom Ogilvy


"Vishal" wrote in message
oups.com...
Hi..
I've to insert an image in excel sheet using VBSCript.
Can anyone please guide me ?

Vishal



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Inserting an Image in an Excel sheet using VBScript.

Thanks Olive..
I tried that and it works perfect when i use this code in a vb macro.
The problem is that i want to use it in a Quick Test Pro script.. and
since it supports the VBScript, i thought that a normal VBScript code
wud work in it. But when i use this piece of code in my QTP script, it
gives an errror at the line
Range("B9").select - Type mismatch.
u've any clue ?

I think i'll post a new topic with the heading - Inserting an image in
an excel sheet using QTP !

Thanks
Vishal

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Inserting an Image in an Excel sheet using VBScript.

If the script uses automation to control excel, you would naturally have to
prepend the appropriate qualifications to the elements of the code to direct
it to the proper object.

--
Regards,
Tom Ogilvy


"Vishal" wrote in message
oups.com...
Thanks Olive..
I tried that and it works perfect when i use this code in a vb macro.
The problem is that i want to use it in a Quick Test Pro script.. and
since it supports the VBScript, i thought that a normal VBScript code
wud work in it. But when i use this piece of code in my QTP script, it
gives an errror at the line
Range("B9").select - Type mismatch.
u've any clue ?

I think i'll post a new topic with the heading - Inserting an image in
an excel sheet using QTP !

Thanks
Vishal



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
Inserting an image into a cell Trent SC New Users to Excel 2 April 11th 08 11:37 AM
Inserting an image or line BigPig Excel Worksheet Functions 0 February 9th 06 07:24 PM
Inserting .bmp image using VLOOKUP shashak[_6_] Excel Programming 0 November 13th 04 07:51 PM
Inserting .bmp image using VLOOKUP shashak[_3_] Excel Programming 0 November 10th 04 03:31 PM
Inserting CGM images in Excel changes image aspect ratio Dinesh[_3_] Excel Programming 0 July 28th 04 09:47 PM


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