+ Reply to Thread
Results 1 to 4 of 4

Issues with how to create a Macro that organize data from one excel file into another file

  1. #1
    Registered User
    Join Date
    05-02-2012
    Location
    Cleveland, OH
    MS-Off Ver
    Excel 2007
    Posts
    3

    Issues with how to create a Macro that organize data from one excel file into another file

    I would like to first state that I am very new to VBA, but am trying to learn it slowly but surely. I have attached two documents, ‘LU Vis’ and ‘Vis Standards’. The ‘LU Vis’ is a file that gets updated daily from an access database that I have no control over. The file I have attached is all made up but shows exactly what would be shown in the real file. What are missing from it are all the filters that the original one has on it that allows me to change the year, quarter, month, week, and day that I am looking at, but everything from row 8 and above is exactly what is shown. However, dependant on what I choose as my filters the names and numbers shown in row 9 and below change.

    What I have shown in the file ‘Vis Standards’ is exactly what I am trying to create a macro for. In the ‘Vis Standard’ file, what I essentially need the macro to do is read the file ‘LU Vis’, specifically everything in column A, B, and C and from row 9 to whenever there is no longer any values listed. At times, there is the word “unknown” listed under a name instead of a number, which can be ignored. The numbers listed in the table FR and Standard are constant, except that in my actual file, there are 120 FR’s and standards. I need the macro to sort through ‘LU Vis’ then enter the Pcs and Hrs into the table in ‘Vis Standards’. Pcs corresponds to column B and Hours corresponds to column C, both respectively in ‘LU Vis’. I need each person to be put into their own tab within ‘Vis Standards’ in alphabetical order. If anyone could help with creating a macro that can do this that would be greatly appreciated. If possible, I would also love an explanation of what specific parts of the code does, being that I am trying to learn VBA at the same time. Thanks.
    Attached Files Attached Files
    Last edited by chuchar7; 05-03-2012 at 09:55 AM.

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Macro Help

    Are you trying to update Vis Standards.xlsx or create it? If the latter, where do the extra rows come from?

  3. #3
    Registered User
    Join Date
    05-02-2012
    Location
    Cleveland, OH
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Issues with how to create a Macro that organize data from one excel file into another

    I am trying to create it. The numbers listed under "FR" and "Standard" are all constant and would be the same every single time for every person. In my case, I would have 120 numbers listed under both "FR" and "Standard", thus the extra rows. What would then need to be done is specific information as stated above from the 'LU Vis.xlsx' would need to be imported into the 'Vis Standard.xlsx' by person, each person in their own respective tab. The 'Vis Standard.xlsx' file I have attached is what the final product would look like if the 'LU Vis.xlsx' was my actual file. Thanks for your help.
    Last edited by chuchar7; 05-03-2012 at 10:59 AM.

  4. #4
    Registered User
    Join Date
    05-02-2012
    Location
    Cleveland, OH
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Macro Help

    I am trying to create it. The numbers listed under "FR" and "Standard" are all constant and would be the same every single time for every person. In my case, I would have 120 numbers listed under both "FR" and "Standard", thus the extra rows. What would then need to be done is specific information as stated above from the 'LU Vis.xlsx' would need to be imported into the 'Vis Standard.xlsx' by person, each person in their own respective tab. The 'Vis Standard.xlsx' file I have attached is what the final product would look like if the 'LU Vis.xlsx' was my actual file. Thanks for your help.

+ 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