Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #21  
Old 03-09-2020, 08:38 AM
SamDsouza SamDsouza is offline Create a Word Document with VBA Windows 10 Create a Word Document with VBA Office 2013
Advanced Beginner
Create a Word Document with VBA
 
Join Date: Aug 2019
Posts: 71
SamDsouza is on a distinguished road
Default

I am still confused between .inlineshapes and Floating shapes and messed up.

my image size is 6.32 cm H and 5.27 cm W. I would like to resize to 25% of left sizes provided and Image to be provided behind text.

.Paragraphs(1).TabStops.Add InchesToPoints(7.5), wdAlignTabRight
this poped up with error hiliting InchesToPoints(7.5) "Sub or Function Not defined
Sir indeed your coding was practical to what i desired
Quote:
All you need is something like:
Code:
Const wdAlignTabRight As Long = 2
Dim oLogo As Object
'….
With .Sections.First.Footers(wdHeaderFooterPrimary).Ran ge.Paragraphs(1).Range
.Text = "Footer Note" & vbTab
.Paragraphs(1).TabStops.Add InchesToPoints(7.5), wdAlignTabRight
Set oLogo = .InlineShapes.AddPicture("C:\FORMS\1-Seal.jpg", False, True, .Characters.Last)
With oLogo
.Height = 75
.Width = 100
End With
End With
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Create a Word Document with VBA How do I create an index of every word in a document? jbengal Word 5 11-23-2022 02:17 PM
Create a Word Document with VBA Can I create word wizards with Word 2016 to automate document creation? OkiDoki Word 4 09-30-2016 11:41 AM
Create a Word Document with VBA Word 2010 - How to create a fillable document from a boilerplate document sheaters Word 2 05-04-2016 01:57 PM
How to create a special TOC in word document? gn4619 Word VBA 5 04-29-2015 04:25 PM
How to identify whether Word 2007 was used to create a document saved as Word 2003 noviceatwork Word 0 03-08-2012 06:40 AM

Other Forums: Access Forums

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