Re: Code to go to first character in the page



Hi

> Does anyone know a piece of code that would move you to the first character
> in the current page of a document? I am new to Word VBA and finding it not
> the easiest, if anyone can help that would be great.

this moves the selection before the first char of the page

Sub FirstCharOfPage()
Selection.Bookmarks("\Page").Select
Selection.Collapse wdCollapseStart
End Sub

--
regards Christian
~~~~~~~~~~~~~~~~
reply only to this newsgroup
http://www.mvps.org/word/FindHelp/Posting.htm
.



Relevant Pages

  • Re: Delete blank character
    ... > How do I detect a blank character as the first character in the field? ... Please respond only to this newsgroup. ... I do not reply to personal e-mail ... Prev by Date: ...
    (microsoft.public.access.formscoding)
  • Re: removing characters
    ... For everyone's benefit keep the discussion in the newsgroup. ... > spreadsheet 40 thousand + i was wondering if there is a quick way to ... ie get rid of first character? ...
    (microsoft.public.excel.misc)
  • Re: Replace space in text file
    ... Dim Data As String ... Dim Prev As Long ... ' Start at the first character ... Found = InStr(Prev, Data, " ", vbBinaryCompare) ...
    (microsoft.public.vb.general.discussion)
  • Re: Replace space in text file
    ... Dim Data As String ... Dim Prev As Long ... ' Start at the first character ... Found = InStr(Prev, Data, " ", vbBinaryCompare) ...
    (microsoft.public.vb.general.discussion)
  • php_printer printer_get_option($my_printer, PRINTER_PAPER_WIDTH) function
    ... Another problem I am having is that it is printing the first character ... And I have no idea what would be causing that. ... Prev by Date: ...
    (comp.lang.php)