Hi Leith
How great can one man be! Thanks - your changed code worked. I envy your capability to spot whats wrong and just correct it and then it works.
You didnt misunderstand me - the combobox1 have a list of train stations and all these stations have a textfile associated with them - 1 station = 1 textfile (for url to google maps) .
BUT im afraid i still have issues that i cant solve.. i worked with it for hours yesterday but couldnt get it to work. The thing is that im trying to make relative paths to all my functions (which all worked with the fixed paths) and its not that easy as i thought. I have one final thing i would like you to look at...
When i select a station in combobox1 , i now get these things: i get a picture of the station shown in a little box (image2) ,, i can press a command button and get the picture shown full screen,, i can press commandbutton 13 to get the station shown in google maps (thanks to you) ,, and the final button (which i will ask you to look at) is "send picture to personel in a mail" . this function (in my old code with fixed path) would attach that picture of the choosen station (combobox1) to an email.. but after i have tried to make a relative path for the picture it doesnt work anymore.The mail opens and body and subject is fine but the attachment is gone with the wind. If you can figure this out.. could you tell me what i need to change but also why my! code didnt work? it would help me alot to understand and see the logic in vba a little better ( maybe )
Thanks
/Jan
Bookmarks