+ Reply to Thread
Results 1 to 8 of 8

Help with multi-formatting of a workbook

  1. #1
    Registered User
    Join Date
    08-27-2014
    Location
    Austin
    MS-Off Ver
    MS Office 2013
    Posts
    3

    Help with multi-formatting of a workbook

    Hello,

    I am trying to wrap my head around macros still. I have used the recorder and have gotten some good results but I am coming to a part where I need some help.

    I have a workbook with three spreedsheets. The first spreedsheet has a column range of A-AS. The rows can be anywhere from 4 to 4000. I need a macro to do several steps which I will try to outline by the steps I would need and in the order in which I would need to do them.

    1. I would need to delete several columns (A-C, G-H, M-AB, AE-AK)
    2. I would need to copy and paste any negative numbers (rows) from column (O) to a new tab called "Credits"
    3. I would need to delete any rows that were copied to the "Credits" tab
    4. I would then need to custom sort the spreedsheet with three levels- Column C, Column A, Column J
    5. I would then need to clear the numerical content of Column (O)- adding a new header as "Quantity"
    6. I would then need to add two blank rows between every different product in Column C

    I have attached a copy of the raw data so you can see what I am working with, Plus a copy of what I need the spreedsheet to look like after I apply the macro.

    Any help would be very much appreciated
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Help with multi-formatting of a workbook

    Welcome to the Forum.

    First, I wouldn't attached two work books, I would attach one workbook with two sheets, so we can see before and after in ONE workbook.
    Second, I am having trouble following the before and after as they dont follow what you say you are doing in step 1-6 above.
    I think you posted TWO close to or finished products as the BEFORE sample data is NOT form column A to AS as indicated above.

    Can you post a more clear example of what you are trying to accomplish with simply names like BEFORE and AFTER for the worksheets?
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Help with multi-formatting of a workbook

    So far...

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    08-27-2014
    Location
    Austin
    MS-Off Ver
    MS Office 2013
    Posts
    3

    Re: Help with multi-formatting of a workbook

    Hi MikeTRON thank you so much for responding, I in fact did upload an incorrect file. I apologize. I have uploaded a more complete worksheet and took your advice. The book has three sheets, the first sheet is the manipulated raw data, the second is the credits (I would prefer the Macro automatically creates the new tab) and the last tab is how I would like the finish product to look like when all negatives have been removed and the sheet has been re-organized. I hope the new samples will clear up what I am trying to achieve. Again thank you so much for your time. The name of the sheet MDDataExtract is how the file will be named in the end if that helps.
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Help with multi-formatting of a workbook

    Step 2. I would need to copy and paste any negative numbers (rows) from column (O) to a new tab called "Credits"

    Does Credits tab already exist?
    Is it Empty?
    Do you need to clear it or create it?
    Do you need to paste the data to the top as it is fresh data or paste it to the bottom of what is already there?

  6. #6
    Registered User
    Join Date
    08-27-2014
    Location
    Austin
    MS-Off Ver
    MS Office 2013
    Posts
    3

    Re: Help with multi-formatting of a workbook

    Hi again MikeTRON

    The credits tab does not exist- I would like the code to make a new tab called Credits so that it can move the negative rows from column O to it. After all negative rows have been moved over to the newly created credits tab, I would then like the negative rows from the original spreadsheet "MDDataExtract" to be deleted, only leaving the positive numbers.

  7. #7
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Help with multi-formatting of a workbook

    What does Step 5 mean specifically?

  8. #8
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Help with multi-formatting of a workbook

    I still have NO idea what step 5 does as it is not clear on your example but here is what I created:

    MDDataExtract.xlsm

    Please Login or Register  to view this content.

+ 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. Multi-step formatting macros with formatting and formulas
    By LG99 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-05-2013, 10:57 PM
  2. Multi conditional formatting
    By Glio in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-11-2008, 06:39 AM
  3. Multi Contiditional Formatting
    By kgkev in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-23-2007, 08:16 AM
  4. Multi-line Formatting
    By gareth93 in forum Excel General
    Replies: 2
    Last Post: 06-12-2006, 08:35 AM
  5. multi tab workbook
    By JOUIOUI in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-09-2006, 07:10 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