Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6364319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:08:56+00:00 2026-05-25T00:08:56+00:00

I cant really seem to find a documentation for word addins in C#. Like

  • 0

I cant really seem to find a documentation for word addins in C#. Like to find out how to insert text I played with intellisense for half and hour to find Application.Selection.Range.InsertAfter(); Is there a documentation to this I’m trying to figure out how to print out formatted text like a link but I’m finding little resources.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T00:08:57+00:00Added an answer on May 25, 2026 at 12:08 am

    Your are not really specifying what you want to do exactly. One of the best starting points into figuring out how to do stuff in office automation is to record a macro and then look at what it generated.

    For this question I entered a line of text in a document:

    This is a new line of text and this a link

    Then I used ctrl+leftarrow 3 times to move the cursor before ‘this’ and selected the next 4 chars (this). Then I turned the selection into a hyperlink pointing to stackoverflow
    This is resulting code:

    Selection.TypeText Text:="This is a new line of text and this a link"
    Selection.MoveLeft Unit:=wdWord, Count:=3
    Selection.MoveRight Unit:=wdCharacter, Count:=4, Extend:=wdExtend
    ActiveDocument.Hyperlinks.Add Anchor:=Selection.Range, Address:= _
        "http://www.stackoverflow.com/", SubAddress:="", ScreenTip:="", _
        TextToDisplay:="this"
    

    In general it’s not that hard to convert this vba stuff to c# and finding the proper methods

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

hey guys having this really simple problem but cant seem to figure out have
Ive had a search, but cant really seem to find a decent answer. Basically
This is probably a really silly question bu tI can't seem to find an
This is a really simple question, but I can't seem to find the answer.
This is probably really easy but I can't seem to figure out how to
I cant really figure out whats wrong with this. I used to write the
where do I begin? I can't seem to find any definitive documentation. (I am
I can't seem to actually find a reference to 'is' in the AS3 documentation
I can't seem to find any useful documentation from Microsoft about how one would
I can't seem to find any documentation on how to do this that actually

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.