+ Reply to Thread
Results 1 to 2 of 2

Dynamically Build Report With Formatting

  1. #1
    Registered User
    Join Date
    04-05-2012
    Location
    Nevada, USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Dynamically Build Report With Formatting

    I work at a hotel, and I have been asked to create a report that compares offers we have out with those of last year. The report also needs to compare the numbers from last week to those of the current week. There are different departments that create different codes, and the departments require different data to fulfill their desires. One department wants to know how many room nights are booked under a code, and how many bookings there are. And the other department wants to know how many room nights, and how many reponses. To help you understand, John Smith books 2 rooms for 3 nights each. He counts as 1 response, 2 bookings, and 6 room nights. I have attached the report I created, but the problem with it is that every month, and sometimes several times a month, codes change, or are added.

    I get my data from querying a database, and I put all of the querys into the input form in the columns that are there.

    I think I need to write some VBA that will dynamically create these tables I have built, but I don't know how. I don't know how to create the necessary borders and formating for each code. Things have gotten out of hand, and my actual report has turned into 10 pages of these things, and it takes me almost an entire day to compile. Any suggestions would be helpful. Thanks!
    Attached Files Attached Files
    Last edited by rockclimber510; 04-12-2012 at 03:18 PM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Help, I've Created a Monster

    Rockclimber510,

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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