+ Reply to Thread
Results 1 to 8 of 8

Making a Macro to create a report in word

  1. #1
    Registered User
    Join Date
    10-14-2008
    Location
    Shiloh, IL
    Posts
    4

    Making a Macro to create a report in word

    Hi, I have a multi-tabbed excel sheet that i would like to pull a report from the workbook is a work log for my technicians and i need to be able to range it by a start and end date. And if possable I would like it broke into to the set titles for the report sections I have 4 fields. all the sheets are formatted the same.

    Thanks
    Dennis

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Hi Dennis and welcome to he board
    Can you show us how far you already got ?
    Can you post a sample of your data and an example of what you want?

  3. #3
    Registered User
    Join Date
    10-14-2008
    Location
    Shiloh, IL
    Posts
    4
    The report would be broke down by the "type" field. I had it working using MySQL but my office suite does not support it.

    Dennis
    Attached Files Attached Files
    Last edited by draglin; 10-15-2008 at 01:10 PM.

  4. #4
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573
    One easy method is to use FormFields. Here is an example.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    10-14-2008
    Location
    Shiloh, IL
    Posts
    4
    I tried a few scripts and none of them pull from all tabs. The data I need is in column "B" the report is pulled by the date range in "A" and it would pull the hole row for the records that match.

    Dennis

  6. #6
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573
    You have not provided enough details to know what you are doing.

    Are you making a one record document or will it be like a mailmerge where multiple records create a many page document?

    In any case, I don't know how to help if I don't know your rules.

  7. #7
    Registered User
    Join Date
    10-14-2008
    Location
    Shiloh, IL
    Posts
    4
    Thanks,
    I have 17 technicians that work in my shop repairing the installing equipment on a daily basis. currently we keep a lillte xls sheet and update it and send it to our boss every Thursday everyone had a different format and layout. So compiling a report took about 2-3 hours. So I set up a xls workbook with a set format with tabs for each tech. What I am trying to do now is to pull an report from the xls workbook. The report would pull info from the workbook for a set date range and pull the info into a word or text document. I would like to be able to layout the report into subsections per the work type being preformed ie a PMI, Training, Internal project, External project, or a ticket.

  8. #8
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573
    Create your MSWord DOT file with the Text Form Fields from the Forms toolbar. Double click each to set the bookmark name. This is the FormFields name.

    If you can create a short example xls and dot file, and point out or fill the dot file to make a doc file, it will be easier to help you. Make these as simple as possible. You can add the bells and whistles when you get the basics down.

    Here are the xls and doc files that I used. Put the doc file in the same folder as the xls.
    Attached Files Attached Files

+ 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. Macro to create Pivots
    By Japi_s in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-16-2013, 04:40 PM
  2. Can a Macro generate a report?
    By Fowley in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-15-2008, 08:40 PM
  3. Making a Report
    By Martyisbetter in forum Excel General
    Replies: 3
    Last Post: 08-07-2007, 05:31 AM
  4. Create word document
    By jonn in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-09-2007, 12:27 PM
  5. Help with a Macro (MS Word)
    By Push Latency in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-27-2006, 01:37 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