Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Word 2007 Cursor Location 1

Status
Not open for further replies.

merv02

Technical User
Dec 16, 2008
10
US
Hi,
Does anyone know how to create a Macro for Word 2007 that checks if the cursor is in the regular document or the footnotes. Thanks
 
Code:
[blue]Select Case Selection.StoryType
    Case wdMainTextStory
        MsgBox "Cursor is in main body of Document"
    Case wdFootnotesStory
        MsgBox "Cursor is in the Footnotes"
    Case Else
        MsgBox "Cursor is somewhere else"
End Select[/blue]

Enjoy,
Tony

------------------------------------------------------------------------------------
We want to help you; help us to do it by reading this: Before you ask a question.

I'm working (slowly) on my own website
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top