Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-22-2019, 05:45 PM
GeorgeLawshe GeorgeLawshe is offline location in word document Windows 7 64bit location in word document Office 2010 64bit
Novice
location in word document
 
Join Date: Mar 2010
Location: Forney, Texas
Posts: 9
GeorgeLawshe is on a distinguished road
Default location in word document

I am trying to start at a given location in ms word. I have set my ruler scale to inches. Setting the horizontal location is easy using the tab mark.
However I can not find an accurate way to set the vertical location. I can see the marks on ruler but l can only guess at a specific measurement like 8 inches.


Any suggestions?

Does anything show the coordinates of the cursor as one types?
Reply With Quote
  #2  
Old 06-22-2019, 07:55 PM
gmayor's Avatar
gmayor gmayor is offline location in word document Windows 10 location in word document Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,101
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 of
Default

What is the aim of this location? The easiest way to set a location and return to it is to use a pair of macros. One to set a bookmark, the other to select that bookmarked location e.g.

Code:
Sub BMStart()
Selection.Bookmarks.Add ("bmStart")
End Sub

Sub GetStart()
Dim oBM As Bookmark
    For Each oBM In ActiveDocument.Bookmarks
        If oBM.Name = "bmStart" Then
            oBM.Select
            Exit For
        End If
    Next oBM
End Sub
__________________
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
  #3  
Old 06-22-2019, 09:02 PM
GeorgeLawshe GeorgeLawshe is offline location in word document Windows 7 64bit location in word document Office 2010 64bit
Novice
location in word document
 
Join Date: Mar 2010
Location: Forney, Texas
Posts: 9
GeorgeLawshe is on a distinguished road
Default

I have preprinted color forms to recognize people, the forms are complete except for four spaces.

I can identify the the first character of the fill ins with dimension or grid coordinates like

6" down 3" from left
7.5 down 3.5 from left
8.25" down 3" from left
9.5 down 2.75 from left

the tabs make the horizontal location easy
but I can't find a similar feature for the vertical
Reply With Quote
  #4  
Old 06-22-2019, 11:43 PM
gmayor's Avatar
gmayor gmayor is offline location in word document Windows 10 location in word document Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,101
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 of
Default

As far as a Word document is concerned, the paper you are going to print it on is an irrelevance. You could use an image of the pre-printed form as a background image temporarily to enable you to locate the areas of the document that you wish to fill, but it is not clear how you are intending to fill those areas - presumably with images.

If you simply want to insert an image at a specific location then you can do that with VBA also e.g.

Code:
Sub InsertImage()
Dim oShp As Shape
    Set oShp = ActiveDocument.Shapes.AddPicture(FileName:="C:\Path\ImageName.jpg", _
                                                SaveWithDocument:=True)

    With oShp
        With .WrapFormat
            .Type = wdWrapSquare
            .Side = wdWrapBoth
            .DistanceTop = InchesToPoints(0.1)
            .DistanceBottom = InchesToPoints(0.1)
            .DistanceLeft = InchesToPoints(0.1)
            .DistanceRight = InchesToPoints(0.1)
        End With
        .LockAspectRatio = msoTrue
        .Width = InchesToPoints(1) ' The displayed width of the picture
        .Left = InchesToPoints(3) - ActiveDocument.PageSetup.LeftMargin 'The distance from the left edge of the paper
        .Top = InchesToPoints(6) - ActiveDocument.PageSetup.TopMargin 'The distance from the top edge of the paper
    End With
lbl_Exit:
    Set oShp = Nothing
    Exit Sub
End Sub
__________________
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
  #5  
Old 06-23-2019, 07:01 PM
GeorgeLawshe GeorgeLawshe is offline location in word document Windows 7 64bit location in word document Office 2010 64bit
Novice
location in word document
 
Join Date: Mar 2010
Location: Forney, Texas
Posts: 9
GeorgeLawshe is on a distinguished road
Default location in word document

I am not to proficient with VBA. I retired several years ago and my skills with WORD and EXCEL has decreased.

Our organization (The Knights of Columbus) have a preprinted form in color and has logos. The form is to show appreciation to a member after a year of service

It has four blank Lines to type in the information, handwriting the info, with my writing skills, is not an option.

Receiprents name John Smith
Years served 2018-2019
Council Number 123456
Officer giving award Jack Adams

Lining the info is easier using tabs. They work perfect, The problem is trying to line up using the Vertical Ruler. It cannot draw an exact line like a tab.

I finally got the job complete using trial and error and printing sample sheets.

I appreciate your help.

George
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Default location for the Office Document Cache Server drafts location. dianahbr Office 0 03-02-2018 12:37 PM
location in word document How to have the location (path) of the Word document on the title bar? Jamal NUMAN Word 24 09-06-2017 12:18 PM
Want to use the DateAdd function to type text at a location in word document, using date from CC corriganc Word VBA 10 08-09-2017 08:07 PM
Copy table to another location in the same document Sektor Word VBA 2 03-31-2014 09:28 PM
Displaying the filepath/document location in ribbon MrPahoehoe PowerPoint 1 03-01-2013 06:41 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:43 PM.


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