+ Reply to Thread
Results 1 to 4 of 4

How can i create a area specific Macro?

Hybrid View

  1. #1
    Registered User
    Join Date
    04-17-2012
    Location
    New Jersey
    MS-Off Ver
    Excel 2007
    Posts
    2

    How can i create a area specific Macro?

    I have a complicated workbook with many sheets. The way that each sheet is organized makes it so that each sheet has around 20 different 8x25-cell tables alighned vertically down the sheet. To the right of each table is it's corresponding data area that is specific to the topic of the sheet. My end goal is to fulfill each data table within the sheet by pulling that tables specific data from it's (corresponding) area of the sheet. To clarify, there are 20 unique data areas that correspond with each one of the 20 tables (empty table 1 has a corresponding 'data area' that table 1 will pull its data from). The reason i need to pull the data into the tables is to organize the data in a fashion that allows for calculations to take place.

    Is it possible to create a macro that pulls (1 table at a time) the data from the corresponding data area into the formatt of the empy tables (pull data for table 1 from data area 1)? In other words, can a macro be created based on pulling the data from 'data area 1' to 'table 1', then oriented the macro for reuse on the remainder of the data area's and their corresponding tables?

    For example: Create a macro based on table 1 pulling data from data area 1. Then reuse that macro for tables 2-20 by pulling table 2's data from data area 2, and table 3's data from data set 3, etc...

    Any assistance is apprectated.
    Thank you, i apreciate any help.

  2. #2
    Forum Contributor
    Join Date
    02-07-2012
    Location
    MIA
    MS-Off Ver
    Excel 2007, 2010
    Posts
    429

    Re: How can i create a area specific Macro?

    Can you paste an example file to see how you have your data arranged?
    .?*??)
    `?.???.?*??)?.?*?)
    (?.?? (?.?
    Pichingualas <---
    ??????????????????????????

    Wrap your code with CODE TAGS.
    Thank those who helped you, Don't forget to add to their REPUTATION!!! (click on the star below their post).
    Please mark your threads as [SOLVED] when they are (Thread Tools->Mark thread as Solved).

  3. #3
    Registered User
    Join Date
    04-17-2012
    Location
    New Jersey
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: How can i create a area specific Macro?

    Formatting Example.xls

    Here is a formatting example.

    Thank you.

  4. #4
    Forum Contributor
    Join Date
    02-07-2012
    Location
    MIA
    MS-Off Ver
    Excel 2007, 2010
    Posts
    429

    Re: How can i create a area specific Macro?

    Could you point out which data area coresponds to which table? I mean, should I do it vertically, then change horizontally to the next set of columned data areas or first search horizontally, then move to the next row of data areas?

    Secondly, which data goes where? Does a, b, c and d on each feedstock row section correspond to each month, listed on each line on the original data areas? Should I pull to these the data that is under "Monthly" or "Quarterly" or "$" or "%"?

    Your example has 30 data areas and 6 tables to which to pull data, I suppose that's just a mistake. But how will your 20 data areas be organized (the original ones)? A set of 4x5, 5x4, 2x10, 10x2...?

    How many columns are between each columned set of data areas? I count 2 between the first and second and 1 between the rest of them. How many will there really be? I ask this because if your data areas locations follows a set pattern, we can follow that on our code to make the macro run.

    Sorry for taking so long to reply. I'll be waiting for your answer.

+ 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