+ Reply to Thread
Results 1 to 4 of 4

Insert/Delete/Sort Macros

  1. #1
    Registered User
    Join Date
    10-22-2012
    Location
    Not My Chair, Not My Problem
    MS-Off Ver
    Excel 2003
    Posts
    3

    Question Insert/Delete/Sort Macros

    Hi, I need help writing a few macros. Any and all help is welcome. Please ask any questions if you need more info.


    First macro needs to be able to do this:

    (2 workbooks - entry workbook and endpoint workbook)

    From entry workbook:

    Open endpoint workbook.
    Select specific tab in endpoint workbook based on input (date) in the entry workbook (specifically - input would be a MONTH).
    Insert a row in said tab, at a specific row # that is located in a predefined cell with a formula that does a countif + a value to amalgamate for any header rows.
    Then copy + paste data from entry workbook into that newly created row.


    Second macro needs to:

    (2 workbooks - endpoint workbook and update workbook)

    Double click cell in any row in a specific column.
    Open update workbook (looks exactly like entry workbook from before)
    Copy + paste data values from that specific row, that the cell was double clicked in, into specific locations in update workbook.


    Third macro needs to:

    (2 workbooks - same as last macro - update workbook and endpoint workbook)

    Copy + paste data values from update workbook back into the same row that it just came from.
    Delete the total rows (based on countif + value to amalgamate for header rows)
    Then sort the data by a specific column.
    Finally, insert the total rows based on a countif + value to amalgamate for header rows (which is located in predefined cell) the text "TOTAL W:", "TOTAL X:", and "TOTAL Y:" in their respective locations (obviously in the inserted row) along with the formula to sum that range in an adjacent cell/column (eg. =sum(A6:A12) because there are 6 rows with the value W in a specific column)


    Again, any and all help is appreciated. Hopefully I'll be able to put something together with your help.

    Thanks,

    n00b

  2. #2
    Registered User
    Join Date
    10-22-2012
    Location
    Not My Chair, Not My Problem
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Insert/Delete/Sort Macros

    Wow, there are a lot of threads on here. Posted this late last night and it has already fallen to the 4th page by the morning.

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

    Re: Insert/Delete/Sort Macros

    Are you using the same workbooks for all 3 macros?
    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]

  4. #4
    Registered User
    Join Date
    10-22-2012
    Location
    Not My Chair, Not My Problem
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Insert/Delete/Sort Macros

    Hi Arlette, yes, essentially there would be 2 different workbooks and the macros would provide the functionality between the 2:

    -The entry/update workbook
    -The endpoint workbook

+ 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