+ Reply to Thread
Results 1 to 3 of 3

Need VBA code to arrange system generated data into user defined table format

  1. #1
    Forum Contributor
    Join Date
    04-08-2020
    Location
    MUMBAI
    MS-Off Ver
    OFFICE 2007
    Posts
    234

    Need VBA code to arrange system generated data into user defined table format

    I'm attaching excel workbook with this thread.

    in this workbook sheet named as ORIGINAL is System Generated file without any editing.

    second sheet is named as PASTE MTR which is edited System Generated file in which I have removed all blank space.

    and Third sheet is named as MTR IN - OUT which is the Output table format I want after running VBA code.


    earlier, I have posted the thread to get the help for the same issue and one user provided the solution but there was a date format issue. in my System generated data, Date format is in "DD-MMM-YY" but after running VBA code date format changes to "MM-DD-YY" which can create mess in my work. and if you can go further one step and change system generate date in output file "DD-MMM-YYYY" it will be very good. link of this thread is given below

    excelforum.com/excel-programming-vba-macros/1312089-need-help-to-generate-desired-data-in-new-excel-sheet.html

    also in above thread I provided only PAST MTR sheet not System Generated file, but If you can provide the VBA code to generate the data direct from System Generated file it will be very helpful.

    In this attached workbook I have made two changes in my user expected file.

    First is Bifurcation of the column "Transaction Quantity
    " with Positive and Negative quantities.

    Second is I have added column at the end with name "Report Generated Date & Time
    " in which Date and Time should be of VBA code running Date and Time. and this Date and Time format should be of "DD-MMM-YYYY HH:MM AM/PM"
    Last edited by KRIXXXX; 04-13-2020 at 09:56 PM.

  2. #2
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,712

    Re: Need VBA code to arrange system generated data into user defined table format

    Hey KRIXXXX

    Try the below VBA code, you can run it directly from sheet "ORIGINAL" & it should give you the desired output as per sheet "MTR IN - OUT" … Let me know if that works for you or you encounter any issues

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    04-08-2020
    Location
    MUMBAI
    MS-Off Ver
    OFFICE 2007
    Posts
    234

    Re: Need VBA code to arrange system generated data into user defined table format

    Thanks Bro...

    It works like Charm

+ 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. [SOLVED] VB Code to arrange data in Table format
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-22-2019, 04:42 PM
  2. [SOLVED] Arrays incorrect in macro to re arrange data into table style format
    By antonio32 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 08-29-2017, 03:55 PM
  3. VB Code for making a user defined formula for referencing the data
    By laansesu in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-19-2016, 04:01 AM
  4. [SOLVED] Problem with copying data from system generated spreadsheet
    By Stephen R in forum Excel General
    Replies: 1
    Last Post: 12-16-2014, 06:15 PM
  5. Replies: 0
    Last Post: 11-19-2012, 10:41 AM
  6. Code to scrape system generated outlook email doesn't get all the data
    By bobaftt in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-15-2010, 01:57 PM
  7. embedding user-defined hyperlink into auto-generated email
    By kuraitori in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-17-2008, 10:49 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