dcx693
Registered User.
- Local time
- Today, 03:29
- Joined
- Apr 30, 2003
- Messages
- 3,263
Crap. I did a copy and paste. That line of code should look like this:
XLPMT = obj.PMT(dblRate, lngNumPayments, dblPrincipal)
I got into the discussion towards the middle where you guys were talking about the PMT function, so that's what I concentrated on.
In Excel VBA there is a Range.GoalSeek method that you can automate from Access. Of course, the Range part of that method needs to be an Excel range, not an Access control value. You can create and manipulate Excel workbooks from Access, and I bet you could then use the GoalSeek on that. I haven't tried, however. I can try reading through some of the previous posts and seeing what you need. I'm sure some of the Excel GoalSeek functionality can be replicated in Access - if need be.
XLPMT = obj.PMT(dblRate, lngNumPayments, dblPrincipal)
I got into the discussion towards the middle where you guys were talking about the PMT function, so that's what I concentrated on.
In Excel VBA there is a Range.GoalSeek method that you can automate from Access. Of course, the Range part of that method needs to be an Excel range, not an Access control value. You can create and manipulate Excel workbooks from Access, and I bet you could then use the GoalSeek on that. I haven't tried, however. I can try reading through some of the previous posts and seeing what you need. I'm sure some of the Excel GoalSeek functionality can be replicated in Access - if need be.