Good Looking Bloke
Registered User.
- Local time
- Tomorrow, 03:33
- Joined
- Oct 15, 2019
- Messages
- 30
I am helping with a word manipulating Access app written by someone the company lost contact with. This is not my strong area at all, however, most of the time I can sort it out. It's been working well for a while now. Then in the last week, it's suddenly spinning odd errors. Some I have simply rewritten the same code using ADO or some other alternative, but this one is proving elusive and difficult.
The code generating the error is
The line generating the error is
which is adding confusion to my confusion. I mean why not error on Column 1?
Adding to my confusion in one instance the code ran past this with no issue, generating a different error later, only to generate the 5941 error description 'The requested member of the collection does not exist' again.
Any available suggestions welcome.
The code generating the error is
If blnChallenge Then
startRange.ConvertToTable (vbTab)
doc.Tables(doc.Tables.Count).Columns(1).Width = 1.85 * 28.35
doc.Tables(doc.Tables.Count).Columns(2).Width = 11 * 28.35
doc.Tables(doc.Tables.Count).Columns(3).Width = 6 * 28.35
The line generating the error is
Code:
doc.Tables(doc.Tables.Count).Columns(2).Width = 11 * 28.35
Adding to my confusion in one instance the code ran past this with no issue, generating a different error later, only to generate the 5941 error description 'The requested member of the collection does not exist' again.
Any available suggestions welcome.