Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-17-2016, 05:11 AM
ChrisHanschen ChrisHanschen is offline New Word Document not 'at front' Windows 10 New Word Document not 'at front' Office 2016
Novice
New Word Document not 'at front'
 
Join Date: Oct 2016
Posts: 1
ChrisHanschen is on a distinguished road
Default New Word Document not 'at front'

Hello,

I'm using the following code in my Word Addin (VB.NET) to create a new Word-document:

MyDoc = ThisAddIn.MyWord.Documents.Add(Template:=MyTemplat e, Visible:=True)
(MyWord is declared by loading Add-in as MyWord = Me.Application)

This works fine!
But when this Word application already has open documents, the new one is not visible or active.
The new document is behind an other document, I can't get it 'to front'.



I have tryed this:
MyDoc.ActiveWindow.Activate() ' -> not working
MyDoc.Activate() '-> not working

Please help.

Chris Hanschen
LKSVDD architecten Hengelo, The Netherlands
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Template Document Front Page with Select Options RichTea88 Word 2 01-28-2014 03:40 PM
insert front page from other document student1 Word 3 09-17-2013 01:20 AM
New Word Document not 'at front' Is there a way to print only certain pages in a document front to back? GrahamV2 Word 2 06-26-2013 10:38 AM
New Word Document not 'at front' Keep box drawn in front of Video in FRONT position a_gunslinger PowerPoint 1 04-18-2013 07:54 AM
Can't see comments on front page of Word document Josaster Word 0 10-15-2012 06:37 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:05 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft