Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #7  
Old 08-12-2019, 05:02 AM
SamDsouza SamDsouza is offline ConmandButton dissappears when Content dispalyed on Page 1 Windows 10 ConmandButton dissappears when Content dispalyed on Page 1 Office 2013
Advanced Beginner
ConmandButton dissappears when Content dispalyed on Page 1
 
Join Date: Aug 2019
Posts: 71
SamDsouza is on a distinguished road
Default

Tried with both wdCollapseEnd and wdCollapseStart ' RED and Blue Respectively
Code:
With objRange
        .Collapse Direction:=wdCollapseEnd    'collapse the range
        .Text = txtword    'write to the range
        .Font.Name = "Tahoma"    'format the range
        .Font.Size = "12"
        .ParagraphFormat.SpaceAfter = 0
        .Collapse Direction:=wdCollapseEnd    'collapse the range
    End With
As coded by you With above, the range started immediately after CommandButton but completely New As Document1

but when i changed as below, the range was seen in completely New As Document1
Code:
With objRange
        .Collapse Direction:=wdCollapseStart    'starts the Range in NewPage
        .Text = txtword    'write to the range
        .Font.Name = "Tahoma"    'format the range
        .Font.Size = "12"
        .ParagraphFormat.SpaceAfter = 0
        .Collapse Direction:=wdCollapseEnd    'collapse the range
    End With
Any Possibility to add page 2 and to start the Range in Page 2 of the current document "C:\WordTrial\cmdBtnWord.docm"

Also with above coding trials. Observed one thing whenever Document1 or new document Opens with that one more document opens but without a Page and item in Ribbons are disabled. Could you explain why this happens ?
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 12:28 PM.


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