How do I get a slider in Word doc?

16,695

Solution 1

There is nothing pre-built that I know of that you can easily add to Word.

Only options I can think of:

  1. Create a slider in JavaScript, take a picture of that and insert it. We use the jQueryUI Slider in our application. You can use JSFiddle to create and test out options. You would need to create a slider you like and then copy in an image (see here for example).
  2. Program a custom control. This could be done in .Net or with something that supports OLE.

Solution 2

I've never done this, but apparently if you have Visual Studio you can Add Windows Forms Controls to Office Documents:

You can add Windows Forms controls to Microsoft Office Excel and Microsoft Office Word documents at design time in document-level projects. At run time, you can add controls in document-level customizations and in application-level add-ins. For example, you can add a ComboBox control to your worksheet so that users can select from a list of options.

  1. Create or open an Excel Workbook project or Word Document project in Visual Studio so that the document is visible in the designer. For information on creating projects, see How to: Create Office Projects in Visual Studio.

  2. In the Common Controls tab of the Toolbox, click the control you want to add, and drag it to the document.

If you check the list of controls that can be embedded in Word documents, there's a TrackBar control that seems to be just what you need.

Share:
16,695

Related videos on Youtube

kacalapy
Author by

kacalapy

web dev mgr

Updated on September 18, 2022

Comments

  • kacalapy
    kacalapy over 1 year

    How can I get a visual element such as a slider into a Word document so that I can make use of it to visually represent a scale of 1-100 ?

    I was thinking of an element such as this: sliders

    I am fine with any such element that will visually represent a numeric value.

    • Brad Patton
      Brad Patton about 11 years
      An image of a slider or a dynamic control?
    • Ramhound
      Ramhound about 11 years
      First....What version of Word...Second I have never heard of putting dynamic controls into a Word document.
    • Brad Patton
      Brad Patton about 11 years
      @Ramhound inserting a chart can be tied to dynamic data. You can also insert OLE Objects. Not to mention linking data with VBA. Just depends on how involved you want to get.
    • kacalapy
      kacalapy about 11 years
      word 2010, and i'ld like to be able to not use an image but something i can slide to set the value. something dynamic.