From: pranavsv on 14 May 2007 08:37 Hi, I am using Word 2003 Visual Basic 6.0. I want to open Word in my VB code without loading the templates (similar to winword/a from command line) I'm using Cretaeobject("Word.Application"). I would like to load Word application without loading the default templates and assign it to an Object variable. Her's my current code Private m_app As Object Set m_app = CreateObject("Word.Application") Or How can I start Word using VB 6.0 without loading templates? Can someone help me on this? Thanks.
From: Cindy M. on 9 Jun 2007 09:30 > I am using Word 2003 Visual Basic 6.0. > > I want to open Word in my VB code without loading the templates > (similar to winword/a from command line) > > I'm using Cretaeobject("Word.Application"). > I would like to load Word application without loading the default > templates and assign it to an Object variable. > > Her's my current code > > Private m_app As Object > Set m_app = CreateObject("Word.Application") > > Or > > How can I start Word using VB 6.0 without loading templates? > You'd need to use Shell to start Word, then pick it up with GetObject. Cindy Meister INTER-Solutions, Switzerland http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005) http://www.word.mvps.org This reply is posted in the Newsgroup; please post any follow question or reply in the newsgroup and not by e-mail :-)
|
Pages: 1 Prev: Weird behavior with Range.Delete Next: Get web page object through Word VBA? |