LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 59
Default Newbie Code Question: Showing various pictures on a form

I have a spreadsheet which contains a Combobox with an Index function to
display information from the selected record of another worksheet.

I have created a Form with a picture object and have added the following
code to the form:

Private Sub UserForm_Initialize()
Dim PicPath As String ' Declare Picpath

' The path and filename of the selected record's picture is contained within
cell F9
PicPath = ("F9")
frmLabel.Picture = LoadPicture("PicPath")

End Sub

Surprisingly it doesn't work.
Can someone help me with this and tell me what I have missed please?

Dylan Dawson
Scotland


 
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
VBA code for sizing/showing pictures Secret Squirrel Excel Discussion (Misc queries) 1 August 28th 08 04:43 AM
Pictures.Visible question (after adding many pictures, they stop disappearing) Abe[_4_] Excel Programming 2 July 11th 06 05:02 AM
Newbie - Input Form Question Tempy Excel Programming 6 August 10th 05 01:13 PM
Showing Pictures Todd Huttenstine[_2_] Excel Programming 3 February 2nd 04 03:46 AM
Copy form and code question Stuart[_5_] Excel Programming 2 August 17th 03 12:38 PM


All times are GMT +1. The time now is 12:41 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"