Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #8  
Old 09-15-2016, 05:36 AM
youseeme youseeme is offline Macro to Insert Logo in header on 1st page only and bookmark it. Windows 10 Macro to Insert Logo in header on 1st page only and bookmark it. Office 2013
Novice
Macro to Insert Logo in header on 1st page only and bookmark it.
 
Join Date: Sep 2016
Posts: 6
youseeme is on a distinguished road
Default

Thanks again, I think as its just text it might be better to use textboxes.

I have managed to get a textbox added into the header and put in some 'test' text, how do I set the textbox to have no outline and set the font etc for the text?
Code:
    With Selection.Sections(1)
        Set Shp = .Headers(wdHeaderFooterFirstPage).Shapes.AddTextbox(Orientation:=msoTextOrientationHorizontal, _
        Left:=50, Top:=50, Width:=100, Height:=100)
        With Shp
            .LockAspectRatio = True
            .Height = CentimetersToPoints(3.53)
            .Width = CentimetersToPoints(4.68)
            .Left = CentimetersToPoints(8.74)
            .Top = CentimetersToPoints(-0.96)
            .WrapFormat.Side = wdWrapNone
            .WrapFormat.Type = wdWrapBehind
            .Name = "CCTextBox"
            .TextFrame.TextRange.Text = "Test"
        End With
    End With
and last thing, how would I go about hiding it for printing, I was using this to hide the logo..
Code:
           ActiveDocument.Sections(1).Headers(wdHeaderFooterFirstPage).Shapes("CCLogo").Visible = msoTrue
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to Insert Logo in header on 1st page only and bookmark it. Macro to insert Landscape page Catty Word VBA 1 05-05-2014 03:42 AM
Macro to Insert Logo in header on 1st page only and bookmark it. Open header to insert text into bookmark Amapola188 Word VBA 3 07-12-2012 05:16 PM
Macro to insert new page... samanthaj Word 17 01-31-2012 01:53 PM
Macro to Insert Logo in header on 1st page only and bookmark it. Macro to get first letter of a page in the header faramir Word VBA 4 11-16-2011 05:43 AM
Macro to Insert Logo in header on 1st page only and bookmark it. How to print header logo only in 1st page Shafraz Khahir Word 1 11-29-2010 11:52 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:55 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