+ Reply to Thread
Results 1 to 4 of 4

making a list with macros

  1. #1
    Registered User
    Join Date
    05-20-2013
    Location
    CA
    MS-Off Ver
    Excel 2010
    Posts
    1

    making a list with macros

    I need to make a macro that creates a Word doc. and corresponds with an Excel spreadsheet. I have a typed out proposal for my work. I have decided to use individual identifiers like "Project_Title1" or "Contact_Name," or things like that. Then I have connected those to be replaced with cells from my excel spreadsheet. This is all working out well.
    My problem is that I need to be able to make a list. Each proposal may have a different number of things that need to be listed. I have tried to do the same thing as above with the list, but it ends up leaving a huge gap in the middle of my word doc.

    Here is a short example of what I have so far:

    Please Login or Register  to view this content.
    Moderators note: code tags added for you - this time
    Last edited by FDibbins; 05-20-2013 at 05:54 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: making a list with macros

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code in [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    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: making a list with macros

    Without seeing your document & workbook structures, it's impossible to say what the issues are.

    Even so, your code is inefficient. You should be able to replace:
    Please Login or Register  to view this content.
    with:
    Please Login or Register  to view this content.
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: making a list with macros

    Mail merge ...
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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