Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default How to change picture

hello...I am making one software in excel and i want to change picture when i
am click on that picture name in list box.........
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9,101
Default How to change picture

PictName = ActiveSheet.ListBox1.Text
Set OldPict = ActiveSheet.Shapes(PictName)
PictLeft = OldPict.Left
PictTop = OldPict.Top
PictWidth = OldPict.Width
PictHeight = OldPict.Height
OldPict.Delete

Set NewPict = ActiveSheet.Pictures.Insert("H:\My Documents\My
Pictures\lincoln.jpg")
NewPict.Left = PictLeft
NewPict.Top = PictTop
NewPict.Width = PictWidth
NewPict.Height = PictHeight


"How to change Picture in excel software" wrote:

hello...I am making one software in excel and i want to change picture when i
am click on that picture name in list box.........

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
Change Background Picture Montu Excel Worksheet Functions 0 December 8th 08 12:30 PM
how do i change a picture in a spreadsheet using a macro? ScottG Excel Discussion (Misc queries) 1 June 11th 08 11:14 PM
How to change an excel sheet into a picture? Not so common New Users to Excel 2 December 12th 05 07:06 PM
How do I change default picture size submerj Excel Discussion (Misc queries) 1 August 2nd 05 06:46 PM
how do i change excel into picture format deckieg New Users to Excel 3 May 22nd 05 01:31 PM


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