Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 08-09-2019, 08:43 PM
gmayor's Avatar
gmayor gmayor is offline ConmandButton dissappears when Content dispalyed on Page 1 Windows 10 ConmandButton dissappears when Content dispalyed on Page 1 Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,144
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

If you are running this button from a Word document, then you must already be in Word, so why create a new instance of Word? However when you create a new document using the code Set objDoc = objWord.Documents.Add this creates a document from the normal template which hopefully will not have your button. You need to create a new document from the template containing the button.

In any case you do not really need a button at all. You could use an autonew macro in the template you are creating to call the userform and that template could already have the table which is fixed in your code, so there is no need to build it.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
using styles to generate content page TYPO Word 2 12-20-2015 12:48 PM
ConmandButton dissappears when Content dispalyed on Page 1 Insert the page before table of content without altering it kbhalakiya Word 2 08-29-2012 03:53 AM
ConmandButton dissappears when Content dispalyed on Page 1 Rotate Page and Content Within It. walker140 Word 1 11-13-2011 11:08 PM
ConmandButton dissappears when Content dispalyed on Page 1 Page number in table of Content Ritu Office 1 09-19-2011 05:10 AM
ConmandButton dissappears when Content dispalyed on Page 1 Paragraph Disappears when Tabbing it over GWalkaa Word 11 07-22-2011 03:19 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:14 AM.


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