+ Reply to Thread
Results 1 to 5 of 5

Need a macro to format data and delete columns and create new column

  1. #1
    Registered User
    Join Date
    08-25-2009
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    7

    Need a macro to format data and delete columns and create new column

    Using Excel 2007:

    I get an excel sheet with data daily from Column A:L. I need a macro to perform the following on it.

    1. Format columns I and K to "Date" as 03/12/13. Current format in columns I & K is date & time.
    2. Delete columns B, C, D, F and G.
    3. Adjust column A to width 15 and all other columns to fit data.
    4. Create a new extra column before existing column A.
    5. Put border from A1 to cells under Column G (Number of data in cells varies every day from G1:G100). e.g. data one day may be present from A1:G35, next day may be from A1:G80.
    6. Print the sheet in portrait view.

    Thanks.

    aacod
    Last edited by aacod; 03-12-2013 at 11:17 AM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,959

    Re: Need a macro for excel sheet

    We would love to help you with your question, but 1st, please rename your thread to something more meaningful, that actually describes your problem. Many members will look at a thread title, and if it is of interest to them, or falls within their area of expertise, they might only open those threads. also, searching for ""help"" will not turn up too many results that will benefit you, sorry.

    Look at it this way...if you typed that title into google, what would you expect to get back?
    To change a Title on your post, click EDIT on you're 1st post, then Go Advanced and change your title
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    08-25-2009
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Need a macro for excel sheet

    FDibbins,
    Thanks, Corrected as suggested.
    HTH.
    aacod

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,959

    Re: Need a macro to format data and delete columns and create new column

    Thanks

    Also, I will move this to the VBA forum, you stand a better chance of getting help there

  5. #5
    Registered User
    Join Date
    08-25-2009
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Need a macro to format data and delete columns and create new column

    OK, appreciate it.

+ 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