I finally figured out the solution to this problem.
For anyone with the same problem:
InchesToPoints Method was not preceded by WdObjRec object variable. It ran the first time and created a reference that was not released and cause an error on additional runs.
Original Code...
Thank you for you're help.
I ran and reran the code using the watch and msgboxes with the variables. The SendVar worked fine but the wdObjRec seemed to be the problem. I finally took the Word object out of the individual macro and declared it Public. That seemed to solve the problem. Quite...
The first time that the macro runs it will format the new Word document size and format the shape size. It will not allow the size formatting in subsequent runs unless Excel is shutdown and restarted.
These are the lines that will not run:
With...
I didn't think it made any difference about the variables so I had not considered that. I did go back and change the variables to either string or integer. The macro still worked the first time and not thereafter.
I tried the Watch very interesting. I didn't see any difference in the variables...
I have code in Excel 2003 to paste Excel ranges into Word as pictures. I want to paste the picture into the Word document and resize to a nice printing size then add the next one after a section break and so on. There are several different macros that have the same paste and format into Word so...
I have a macro in Excel that picks up information and sends an email with that information in the body of the message. The creation of the email and send parts are working. I found the following line of code to get around the security message:
SendKeys "%{s}", True
The problem is that some of...
I have an Excel 97 file that extracts information from numerous (70 -100) other Excel files. The problem is that our current files have start up code to set the toolbars and close code to paste special some billing information so that it is a hard coded number. I do not need to do these...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.