pvharibabu
New Member
I have actually two questions:
1. I have an userform with few RefEdit (Form) controls, an Image (Form) control and a Command Button (Form) control. I have set different images when I click different RefEdits using Image1.Picture = LoadPicture("D:Documents and SettingshbabuDesktopLoadCombPicture.JPG"). As you see, if I open the this xlsm file in a different computer, it won't work as the picture files do not exist. How do I make this work regardless the computer in which this xlsm is opened?
2. How do I check whether or not the range selection is valid? I am trying to set such a way that the form exits (with Command Button click) only when the range selection in all the RefEdits are valid. If any of the range selection is invalid, msgbox pops up referring to that particular RefEdit and the cursor goes to the first (checked) RefEdit with invalid range.
Please let me know if you want my spreadsheet, I can send it to your email id.
Thanks in advance - Hari
1. I have an userform with few RefEdit (Form) controls, an Image (Form) control and a Command Button (Form) control. I have set different images when I click different RefEdits using Image1.Picture = LoadPicture("D:Documents and SettingshbabuDesktopLoadCombPicture.JPG"). As you see, if I open the this xlsm file in a different computer, it won't work as the picture files do not exist. How do I make this work regardless the computer in which this xlsm is opened?
2. How do I check whether or not the range selection is valid? I am trying to set such a way that the form exits (with Command Button click) only when the range selection in all the RefEdits are valid. If any of the range selection is invalid, msgbox pops up referring to that particular RefEdit and the cursor goes to the first (checked) RefEdit with invalid range.
Please let me know if you want my spreadsheet, I can send it to your email id.
Thanks in advance - Hari