Shamil Salakhetdinov
shamil at smsconsulting.spb.ru
Thu Dec 2 07:55:43 CST 2010
Pedro, Do you use proposed VBA code from within MS Access VBE? Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pedro at plex.nl Sent: 2 ??????? 2010 ?. 14:39 To: AccessD at databaseadvisors.com Subject: Re: [AccessD] MS-Word import into Access Hello Shamil, Thanks for the code. when i make a new macro from your code. The code is not accepted as a macro. When using the sub ReplaceTabs name, or another sub name, closing the visual basic editor, and go to macro's, the macro is not present. I has something to do with the reference: (ByRef rdoc As Word.Document) When using it after the sub-name the macro isn't recognized a macro, and i can't start the macro (also not from within the visual basic editor). When i don't use it after the sub-name, i get an error: object not present. and Set wapp = rdoc.Application is highlighted. Any suggestions? Pedro