+ Reply to Thread
Results 1 to 6 of 6

Help Building a complex Macro

  1. #1
    Registered User
    Join Date
    12-09-2016
    Location
    Durango, Colorado
    MS-Off Ver
    2010
    Posts
    9

    Help Building a complex Macro

    Hey guys, I used this forum to help build this excel sheet for the company that I work for. It has been amazing for what we were trying to get out of the spreadsheet. But I want to try and enhance it by building a macro for the steps that are listed on the worksheet. I am not entirely sure how it would work or how to build it and was hoping you all could figure the problem out. With the data looking like the "SPREADSHEET" worksheet, I want the macro to format each line of data separately in the box shown in the "Template" Worksheet. There will probably be anywhere from 200-350 separate lines of data so the entire "TEMPLATE" worksheet should be 2400-4200 lines long as each box is 12 lines long. As for the colored cells separating the boxes, I believe that part will be done manually outside of the macro because the color should be different every 10-20 boxes depending on which NBHD the data correlates with. The excel book is attached. Thanks!!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    08-06-2013
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2013
    Posts
    671

    Re: Help Building a complex Macro

    Are you looking for something as simple as this?

    Please Login or Register  to view this content.
    1. Include a sample workbook with an example of the result you want
    2. Use [CODE] and [FORMULA] wrappers for your VBA code or excel formulas
    3. If your question has been answered, mark the thread as SOLVED and click on the "Add Rep" star to thank whoever helped you.

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Help Building a complex Macro

    Maybe I'm not clear on what you're trying to do. You could preformat the entire template first and then install the conditional formatting rule that you are telling people to put in themselves. I don't see anything in those steps that can't be built into the template.

    Also you don't need to enter Developer > Design Mode to do any of those steps.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  4. #4
    Registered User
    Join Date
    12-09-2016
    Location
    Durango, Colorado
    MS-Off Ver
    2010
    Posts
    9

    Re: Help Building a complex Macro

    "Maybe I'm not clear on what you're trying to do. You could preformat the entire template first and then install the conditional formatting rule that you are telling people to put in themselves. I don't see anything in those steps that can't be built into the template.

    Also you don't need to enter Developer > Design Mode to do any of those steps. "

    REPLY -

    Each person that uses this template will have a different number of sales in a neighborhood group which is where the conditional formatting comes in. For example, if a person has 12 sales in a group then 12 boxes will end with a blue row and then there next group of 7 sales will end with pinks rows each. So I think the conditional formatting will have to be manual. Unless I could add a field in the spreadsheet that correlates with the group that the sale should be in and then have the conditional formatting set to read from that field. The above visual basic code worked but it did not bring in the picture inserts and the colored rows.
    Last edited by shane3200; 04-04-2017 at 11:56 AM.

  5. #5
    Registered User
    Join Date
    12-09-2016
    Location
    Durango, Colorado
    MS-Off Ver
    2010
    Posts
    9

    Re: Help Building a complex Macro

    Looks a lot more simple than I expected. But the code only brought in the data and field names correctly, it failed to bring in the colored rows as well as the picture inserts. Thanks!

  6. #6
    Registered User
    Join Date
    12-09-2016
    Location
    Durango, Colorado
    MS-Off Ver
    2010
    Posts
    9

    Re: Help Building a complex Macro

    The attached excel book is an example of what I want the finished product to look like. If there is a way I could code a conditional formatting into the macro that will change the color under each box that correlates with a specific group, in which a "group field" would be added to the spreadsheet.

    Thanks!
    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. building a revenue forecasting model and need calendar building help
    By miken33 in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 03-11-2013, 06:53 PM
  2. [SOLVED] building a complex formula with the IF statement and Mround function
    By echy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-04-2013, 12:24 PM
  3. [SOLVED] Building Complex Sales Projections - could use some help
    By stevecloudx in forum Excel General
    Replies: 8
    Last Post: 02-14-2013, 08:45 PM
  4. Building a macro
    By raphiduani in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-03-2012, 01:58 AM
  5. Replies: 2
    Last Post: 10-08-2012, 12:49 PM
  6. Macro Building
    By IMHer80 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-12-2012, 10:15 AM
  7. [SOLVED] building complex functions using the function icon in the dialog b
    By travis in forum Excel General
    Replies: 0
    Last Post: 08-10-2006, 01:55 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