+ Reply to Thread
Results 1 to 4 of 4

Word Table Insertion or Not

  1. #1
    Forum Contributor
    Join Date
    12-22-2004
    Location
    Kokomo, Indiana
    Posts
    236

    Word Table Insertion or Not

    At the Company where I work we use a Word document to describe out production test requirements. We use a table with three columns where in column 1 and 3 we list references and in column 2 we write our requirements. I am trying to reduce the verbiage and use pre-defined drop boxes to make everything look the same.

    Taking advantage of Microsoft Words ability to do the work for me, I would like to choose whether to write in free-form (text) or display a list of dependent drop-down boxes. In each row of the table in column 2 the number of requirements can vary. What that means is we could have numerous text paragraphs or line of combo boxes.

    How can I in VBA create a row where I can toggle between free-form text OR connected drop-down lists? My thought was to use a control key + letter as the macro when ever I want to display the series of drop-down boxes. Request ideas and examples from the collective here. Thanks.

    Tony

  2. #2
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Word Table Insertion or Not

    You could use content control dropdowns for a column that only requires a single selection from a pre-defined list, or content control combo boxes for a column that only requires a single selection from a pre-defined list but also allows free text input if none of the dropdown items meets you requirements. Implementing a variable number of controls would be problematic - presumably you'd want to only ever have as many as required in a given case. That said, implementing a procedure that allows for the interactive addition of rows to an existing table, including content controls, is relatively straightforward. See, for example:
    http://www.msofficeforums.com/word/1...html#post54084
    http://www.msofficeforums.com/word-v...html#post87989
    See also:
    http://www.msofficeforums.com/word/2...html#post64370
    http://www.msofficeforums.com/word-v...html#post46903
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

  3. #3
    Forum Contributor
    Join Date
    12-22-2004
    Location
    Kokomo, Indiana
    Posts
    236

    Question Re: Word Table Insertion or Not

    This isn't going to be as elegant as I would like. MS Word wasn't designed to work like Excel within a Word table. My solution is going to involve Excel to keep everything looking the same, Copy and paste into Word. What recommendations would you make when Pasting an Excel range into a MS Word table?

  4. #4
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Word Table Insertion or Not

    That really depends on what you want them to look like in the Word document. Try the various paste formats and see which one best suits a given context - different formats may be needed for different parts of the document.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 10-30-2014, 01:49 AM
  2. ID duplicate with table insertion
    By graiggoriz in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-14-2013, 09:35 AM
  3. [SOLVED] VBA word (2003) codes to check if a table fits in a single page of the word document
    By samkumar in forum Word Programming / VBA / Macros
    Replies: 7
    Last Post: 08-27-2012, 09:35 AM
  4. Replies: 0
    Last Post: 06-15-2011, 02:22 PM
  5. Move the insertion point in Word with VBA - How
    By barryleajo in forum Word Programming / VBA / Macros
    Replies: 1
    Last Post: 12-05-2010, 06:49 AM
  6. atuomatic insertion of excel into word
    By mufan in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-11-2008, 12:29 AM
  7. Excel file insertion into MS Word
    By mnewsome in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 01-25-2008, 05:00 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1