+ Reply to Thread
Results 1 to 13 of 13

Macro to dump data onto sheet

  1. #1
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,233

    Macro to dump data onto sheet

    Hello

    I require some assistance for a macro that will simply move data from one worksheet to "G.S Report" worksheet.

    I receive montly files (August Raw data, September Raw data...December Raw data), which I simply copy paste into the raw data file (copy/paste).

    would like:
    -a macro once data is copied into the i.e. August Raw data worksheet (I have left AUgust and September populated in the sample), so simply paste or dump their data onto the G.S Report worksheet with links to the Raw data sheet.
    -I have provided an example for the month of June and july.

    so basically, I would liek each month's data to be dropped right below one another and on the last cell of each month in the G.S. Report, make a border line to show month end (see example) in G.S Report worksheet

    Can someone pls help!

    I'm very new with macros so I would be gratefull for this help!

    On row 1446 in the G.S report worksheet I have provided one example i.e. row and metrics i want to be carried over from "August Raw data" sheet.

    thx u so much!

    *run macro "unprotect" to unprotect sheet
    Attached Files Attached Files
    Last edited by jw01; 08-23-2011 at 05:08 PM.

  2. #2
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,233

    Re: Macro to dump data onto sheet

    hello guys

    any thoughts?

  3. #3
    Valued Forum Contributor
    Join Date
    11-11-2008
    Location
    Euro
    MS-Off Ver
    2007, 2010
    Posts
    470

    Re: Macro to dump data onto sheet

    Just look through the attached file: there are much different between the column title from G.S Report sheet and August... Sheet; How to combine them?

    Plz, left the clarity-explaining,
    Best regard, -)iger-/iger
    If you are pleased with a solution mark your post SOLVED.

  4. #4
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,233

    Re: Macro to dump data onto sheet

    Hello thx u for your response.

    the titles on the G.S Report sheet and August (month) sheets do not match, but for the formulas ithe G.S Report sheet contain the live links in row 1446.

    basically, i want in G.S report to show exactly what row 1446, when u drag the formula down.

    so in G.S Report.
    column C to say august if it is august
    Column D = column A (august worksheet)
    column E = blank
    column F = column B (august worksheet)
    column G = column F (august worksheet)
    column H = column I (august worksheet)
    column I = column D
    column J = column H (august worksheet)
    column K = column M (august worksheet)
    column L = column Q (august worksheet)
    column M = column R (august worksheet)
    column N = column S (august worksheet)
    column O = formula from row 1446 dragged down
    column P = hidden
    column Q = column P (august worksheet)
    column R = formula from row 1446
    column S, T, U, W = formula from row 1446
    hope that somewhat clarifies your question.

    so pretty much, whenever the monthly raw data sheets (august, september etc) are pasted in, i want the G.S Report to simply copy from row 2 on wards i.e. in the example on row 1446.

    thx u so much

  5. #5
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,233

    Re: Macro to dump data onto sheet

    any thoughts guys?

  6. #6
    Valued Forum Contributor
    Join Date
    11-11-2008
    Location
    Euro
    MS-Off Ver
    2007, 2010
    Posts
    470

    Re: Macro to dump data onto sheet

    Quote Originally Posted by jw01 View Post
    any thoughts guys?
    Try the solution (download the attached file)

    Plz take mention to the sheet "RUN Pr" , and the comments in some cells, and try to familiar with the layout of flashible parameters for the sub. It is easy to change the column and the way you make formulas in the sheet report

    Press Make Report button to runt the macro

    any question more you can post here, I will try to explain,

    i hope you can easily to manage it
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,233

    Re: Macro to dump data onto sheet

    hello bud

    thx u so much; this is exceptional...like i truely appreciate your work and admire you at this point.

    couple of quick questions

    1) i had to insert columns and rows on the Run Pr worksheet so it is currently throwing the macro out of order.
    - i inserted a new column A & B (preference of thse ppl to have column A & B as 0.75 margins)
    - i inserted 4 rows (with rows 1 & 2 being 5.25 margin; row 3 containing a title and row 4 being blank)

    2) in my original file, i have other worksheets that contain August, September, so is it possible for the macro to lookup worksheet that contain month + raw (i.e. August Raw data, September Raw data) so pick up the second word as well?

    thx u so much bud. i really owe you on this.

    i have attached a sample for your to view. thx u again!
    Attached Files Attached Files

  8. #8
    Valued Forum Contributor
    Join Date
    11-11-2008
    Location
    Euro
    MS-Off Ver
    2007, 2010
    Posts
    470

    Re: Macro to dump data onto sheet

    Quote Originally Posted by jw01 View Post
    1) i had to insert columns and rows on the Run Pr worksheet so it is currently throwing the macro out of order....
    Okie, now I write the code corresponding to the name for cell: C11 C1, D5 (define name, you can see by press Ctrl+F3) , so now you can insert any row except for keep form block of parameters.

    Quote Originally Posted by jw01;2585512
    2) in my original file, i have other worksheets that contain August, September, so is it possible for the macro to lookup worksheet that contain month + raw (i.e. August Raw data, September Raw data)[B
    so pick up the second word as well[/B]?
    The macro picks up whole name of the source-sheets at C15,C16,... as well as of the Des.-Sheet. So don't worry about it. (I mean the first word of the source-sheets'name for the month is only written in Col C at Des.sheet)
    see the new version in the attached file.


    A recommendation for you
    in my opinion, your data is very large, so you should consider to change all the dynamic formula to Value, in other word, these cells containing live formula should be calculated by VBA then converted to VALUE (store in the file) --> it will make your file faster
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,233

    Re: Macro to dump data onto sheet

    Hello

    I most definitely will take your advise on the links and simply paste special values.

    Also, i truely apprecaite the quick feedback and help with this matter. you are the best!

    cheers bud

  10. #10
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,233

    Re: Macro to dump data onto sheet

    hey bud

    final request....how i make column R copy down the formula as well?

    currently it is
    R Nothing

    i would liket he formula to be copied down. i realize the formula is incorrect, however on my master file the formula does have a ref error. can u pls help!

    thx u

  11. #11
    Valued Forum Contributor
    Join Date
    11-11-2008
    Location
    Euro
    MS-Off Ver
    2007, 2010
    Posts
    470

    Re: Macro to dump data onto sheet

    Quote Originally Posted by jw01 View Post
    hey bud

    final request....how i make column R copy down the formula as well?

    currently it is
    R Nothing
    You need only change E21 from "Nothing" to ""Fomula" - you also see the instruction at the comment of E5 (in sheet "RUN Pr")

  12. #12
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,233

    Re: Macro to dump data onto sheet

    hey bud,

    final request so if u can kindly and please help (last time) i would be grateful to you.

    i noticed on the file, if i leave august raw data and run the macro, it will create two sets of august raw data.

    is it possible if i select august raw data, it deletes the first set of entries for the month (i.e. august in this case), and overwrites only the august or select month raw data?

    pls let me know sir, thx u so much!

  13. #13
    Valued Forum Contributor
    Join Date
    11-11-2008
    Location
    Euro
    MS-Off Ver
    2007, 2010
    Posts
    470

    Re: Macro to dump data onto sheet

    Quote Originally Posted by jw01 View Post
    hey bud,

    is it possible if i select august raw data, it deletes the first set of entries for the month (i.e. august in this case), and overwrites only the august or select month raw data?
    Now the macro will excutive for:

    finding the August (in case, any month is list as source-sheet) in Report-Sheet, if it has (if NOT found the new data will add the last row in sheet report)

    and Ask if the user is sure DELETE old data or NOT Delete??
    ----- if YES it will their set of old (you should remember "August" is at column C should continue cells and unique in Column C sheet Report)
    ---- if NO --> keeping the old data (the new data will be added following the old data)

    then insert the New Data from Sheet-source (August in this case)

    => now you can update the august event the September or October filled the data, or update new Set of data for July, June,...

    Of course, the macro is correct for any month and you can run more one month (source-sheet) each time


    Note: Old set of data (all records) in the selected month in sheet Report is deleted so plz take care fully when you choose YES for delete the old data BECAUSE there is no undo

    Plz download the new version attached file
    Attached Files Attached Files
    Last edited by tigertiger; 08-24-2011 at 06:51 PM.

+ 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