Is it possible to have a spreadsheet in an xla file, and make reference to data on the spreadsheet in your code?
I am using an xla to distribute an application, and some of the forms have combo boxes. The rowsource property is being set to a column of data which (I thought) was stored with the xla.
The method I used:
1) Opened a new workbook ("book1".
2) Went to the VBA editor and started creating my application.
3) Populated some data on one of the sheets in the workbook, and used that data as the row source property for some combo boxes on forms.
4) Saved the workbook as an "xla" file.
Everything was working fine until I closed the file and reopened it. Now I get an error that indicates that the RowSource property of my combo box is invalid, apparently because the worksheet doesn't really exist (even though it shows up in the project explorer as a worksheet).
So, I am confused.
Any suggestions?
Thanking you in advance.
-Mike Mike Kemp
michael.kemp@gs.com
I am using an xla to distribute an application, and some of the forms have combo boxes. The rowsource property is being set to a column of data which (I thought) was stored with the xla.
The method I used:
1) Opened a new workbook ("book1".
2) Went to the VBA editor and started creating my application.
3) Populated some data on one of the sheets in the workbook, and used that data as the row source property for some combo boxes on forms.
4) Saved the workbook as an "xla" file.
Everything was working fine until I closed the file and reopened it. Now I get an error that indicates that the RowSource property of my combo box is invalid, apparently because the worksheet doesn't really exist (even though it shows up in the project explorer as a worksheet).
So, I am confused.
Any suggestions?
Thanking you in advance.
-Mike Mike Kemp
michael.kemp@gs.com