Hi there,
I'm completely new in this forum, so I hope I'm providing the sufficient information level.
I'm a pretty experienced Danish (which explains the lack of English skills) Catia V5 user. When I'm doing 2D drawings I have a macro that I can run directly from a part which allows me to choose between a predefined number of paper sizes and the macro then create the paper size with parametric title block ect.. Everything worked perfect in R18-R19 and R20, but when R21 was installed the problems started. I know that some of the VBA software changed when R21 is installed, forcing the R20 to run the "new" VBA making the macro stopped working in R20, but the IT-department just fixed this issue. So the R20 runs the old, and R21-R22-R23 runs the new version.
So now I'm running R20 on my computer where the macro works perfectly, but when I open R21-R22-R23 the macro will not work. It’s the same macro, all the documents needed is placed in same folder and so on.
When I run the macro in R23 (I’m currently not using R21 and R22) it starts of by letting me chose the paper size but then it says "Document cannot be read" allowing me to press "ok".
When it gives me a information box saying Run-time error '91': Object variable or With block variable not set.
Then I can do the "debug" where it finds an error in this line " Set DetailSheets = DetailDoc.Sheets " - Again this macro is working in R20, does anyone know what has changed in R23 making the macro producing this error?
I hope my question is understandable.
I'm not allowed to copy paste the whole macro onto this forum, so I know it might be difficult to give me any specific help, but maybe somebody can give me some information on the general changes from R20 to the new revisions which will allow me to fix the macro my self.
Thanks in advance,
Kind regards
Daniel
I'm completely new in this forum, so I hope I'm providing the sufficient information level.
I'm a pretty experienced Danish (which explains the lack of English skills) Catia V5 user. When I'm doing 2D drawings I have a macro that I can run directly from a part which allows me to choose between a predefined number of paper sizes and the macro then create the paper size with parametric title block ect.. Everything worked perfect in R18-R19 and R20, but when R21 was installed the problems started. I know that some of the VBA software changed when R21 is installed, forcing the R20 to run the "new" VBA making the macro stopped working in R20, but the IT-department just fixed this issue. So the R20 runs the old, and R21-R22-R23 runs the new version.
So now I'm running R20 on my computer where the macro works perfectly, but when I open R21-R22-R23 the macro will not work. It’s the same macro, all the documents needed is placed in same folder and so on.
When I run the macro in R23 (I’m currently not using R21 and R22) it starts of by letting me chose the paper size but then it says "Document cannot be read" allowing me to press "ok".
When it gives me a information box saying Run-time error '91': Object variable or With block variable not set.
Then I can do the "debug" where it finds an error in this line " Set DetailSheets = DetailDoc.Sheets " - Again this macro is working in R20, does anyone know what has changed in R23 making the macro producing this error?
I hope my question is understandable.
I'm not allowed to copy paste the whole macro onto this forum, so I know it might be difficult to give me any specific help, but maybe somebody can give me some information on the general changes from R20 to the new revisions which will allow me to fix the macro my self.
Thanks in advance,
Kind regards
Daniel