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 7497573
In Process

The Archive Base Latest Questions

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

I want to add a button to a textbox in a word document. The

  • 0

I want to add a button to a textbox in a word document.
The button should stick to the textbox like this:

----------------------------------------
word document content
text, text, a textbox follows

------------------[button1]-
|text box content          |
----------------------------

text, followed by another textbox

------------------[button1]-
|textbox2 content          |
----------------------------

more text

---------------------------------------

I have been able to add a button using vba, but I don’t know how to make it stick to the textbox since I can have more instances to textboxes with buttons.

I would like to do this using macros, but a C# addin solution is also welcomed.

  • 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-29T19:08:58+00:00Added an answer on May 29, 2026 at 7:08 pm

    I’m afraid it isn’t possible to overlay a button to a textbox like you show, and make them stick together. To overlay them, you need to set their layout wrapping style to something else than “in line with text” (e.g. “Square”) but then Word won’t let you group them (at least not my Word 2003) so in principle they can be moved relative to each other.

    However if you create a button and a text box next to each other and leave the wrapping style be “in line with text” which is the default, then they will stay side by side and not move relative to each other (unless you type text in between them).

    Selection.InlineShapes.AddOLEControl ClassType:="Forms.CommandButton.1"
    Selection.MoveRight Unit:=wdCharacter, Count:=1
    Selection.InlineShapes.AddOLEControl ClassType:="Forms.TextBox.1"
    

    Then you can your other textbox-button pairs on the following lines.

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

Sidebar

Related Questions

How to add HTML controls [like textbox, combo box, button etc.] on canvas [we
Hello I want to add a new subitem in a listView listView.Items[0].SubItems.Add(textBox.Text); I clip
I want to add textbox dynamically in jsp page on Add Row button click.
I want to add a text button onto a WinForms toolbar (a standard button
I have a Listbox with a Item Template as Text box and button (Add)
I want to add a button to my iPhone application which will open an
I want to add a button to each row of a column of an
I have a datagrid that I want to add a button/s to at runtime.
I have a grid, which I want to add a button at the top
I am using Borland Builder C++ 2009. I want to add a button to

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.