meg99,
Ok, that's quite a process you are using but it sounds like it could be
simplified. Help me understand some of the details.
1. Does the user select custom Project calendars as well as a particular
year on the userform? If not, what all does the user select on the
userform?
2. Who creates the holiday data for the Excel Workbook (i.e. you or
someone at corporate level)?
3. What format is the data in Excel? For example, you apparently have 3
columns and 29 rows of data, what are the rows and columns?
4. Where does your userform reside (i.e. in a Project VBA macro, Excel
VBA macro, or perhaps in an independent VB application)?
5. What version of Project are you using (including updates)?
6. What version of Excel (i.e. Office) are you using?
7. What Windows version are you using?
There certainly doesn't seem to be a reason for an intermediate
conversion to a text file and there may not even be a need for a
userform (depending on the answer to question 1 above). What you want to
do is certainly doable but the details may require some one-on-one help.
Let's start with the above and see where that leads.
John
Project MVP- Hide quoted text -
- Show quoted text -
John,
I solved the problem. However, to answer your questions:
1. Does the user select custom Project calendars as well as a
particular
year on the userform? If not, what all does the user select on the
userform?
The user picks the calendar from a combobox and enters the year
in a text box
2. Who creates the holiday data for the Excel Workbook (i.e. you or
someone at corporate level)?
I created the holiday list from national and corporate listings
(ie
What format is the data in Excel? For example, you apparently have 3
columns and 29 rows of data, what are the rows and columns?
row 1 is the name of the holiday
row 2 is the calculated date based on the year
row 3 is titled "Work" and is "Yes" or "No" adjustable by user
after inport (ie New Years Day is "No", while MLK is usually "Yes")
4. Where does your userform reside (i.e. in a Project VBA macro,
Excel
VBA macro, or perhaps in an independent VB application)?
The user form is in Project and is started from a user menu.
The macros inside the form open Excel and populate the listbox.
The default calendar is Standar and the default year is the
current year. The user can change these and update the list prior to
updating the calendar.
The dates in Excel are calculated by cell formulas based on
the entered year.
5. What version of Project are you using (including updates)?
2003 SP3
What version of Excel (i.e. Office) are you using?
2003 SP2
7. What Windows version are you using?
XP Pro SP2
Thanks for the help. You put me on the right track
meg99