Hi there,
I have a specific problem, but also wanted to guage everyone's thoughts on copying codes. For less knowledgeable people like myself, I sometimes find i difficult to write code from scratch, but now that I've been developing a database (with your help!) I'm starting to see how the code is working.
However, I recently copied some code to create an appointment in MS Outlook and adapted it to use existing data on my job form, as opposed to having the user enter everything from scratch.
AlthoughI adapted it, I keep getting a compile error for
When I tested it in the database example I downloaded, my amendments worked. Now that I have copied the command click code into my database I'm getting compile errors. "User defined-type not defined"
So 2 questions:
1. Can anyone advise me on how to fix the compile error?
2. When copying code, do we just copy the code we see or are there other linked modules/macros etc that we should be copying as well?
Thanks,
Anthea
I have a specific problem, but also wanted to guage everyone's thoughts on copying codes. For less knowledgeable people like myself, I sometimes find i difficult to write code from scratch, but now that I've been developing a database (with your help!) I'm starting to see how the code is working.
However, I recently copied some code to create an appointment in MS Outlook and adapted it to use existing data on my job form, as opposed to having the user enter everything from scratch.
AlthoughI adapted it, I keep getting a compile error for
Code:
Dim objOutlook As Outlook.Application
So 2 questions:
1. Can anyone advise me on how to fix the compile error?
2. When copying code, do we just copy the code we see or are there other linked modules/macros etc that we should be copying as well?
Thanks,
Anthea
Comment