• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

image box loadpicture

nilufar

New Member
hello
I have a code that recieve a value of combo box , draw a chart , save picture and load that one in image box.
my saved pictures have a different name so I written this
Code:
myFileName = Me.ComboBox1.Value & ".jpg"
Me.Image1.Picture = LoadPicture(ThisWorkbook.Path & "" & myFileName)
but the code erorr such " the file not found "
what should I do?
 
Last edited by a moderator:
nilufar
Check is Your Thisworkbook.Path's last character as Your used PathSeparator?
If not then modify change
& "" & to & Application.PathSeparator &
 
Administrative Note:
Welcome to the forum.​
We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.​
Read this to understand why we (and other sites like us) consider this to be important.​
And as a reminder :​
 
Back
Top