WordVBAです.先頭ページ,カーソル位置
文書の先頭ページへの移動にも,いろいろ方法があるみたい.例えばコレ.'先頭ページ Selection.GoTo What:=wdGoToPage, which:=wdGoToFirst 'カーソルを文書の先頭に位置付け Selection.HomeKey Unit:=wdStory, Extend:=wdMove 'wdExtend 'Extend:=wdMove は,無しでも同じ結果が得られる.カーソルの移動. Dim currentSTARTcursorPOSITION As Integer Dim currentENDcursorPOSITION As Integer'現在カーソル currentSTARTcursorPOSITION = Selection.Start currentENDcursorPOSITION = Selection.Start + 11'選択 Selection.Start = currentSTARTcursorPOSITION Selection.End = currentENDcursorPOSITION '#Selection.Select ↑↑↑↑↑↑↑↑↑ ぢつわコレがまたよく解ってない. 無くっても既に選択状態になってるのですよね. Set wRange = Selection.Rangeん~難しい.© 6ちゃん! --p.s楽天さんよ,半角スペースも,TABキーも無視ですか.....全角スペースでインデント入れてます.