+ Reply to Thread
Results 1 to 9 of 9

Arrange exported raw case sheet

  1. #1
    Registered User
    Join Date
    09-20-2010
    Location
    islamabad
    MS-Off Ver
    Excel 2019
    Posts
    83

    Arrange exported raw case sheet

    I have created a Macro to arrange daily received sheet in my email for incident handling report by my team analysts

    I have uploaded the targed CSV with the file In which macro is runnig to arrange data copy into the macro sheet later - result for arrange sheet from csv is present in macro

    arrange the sheet
    • conditional formatting select full Colum A to end of A A:A and mark the duplicate
    • filter column A and copy non duplicate to new sheet (Sheet 2)
    • delete these items from sheet 1 non duplicate
    • select blank from column C and delete duplicate rows till end
    • copy sheet two back to Sheet A
    • format all columns of sheet A and arrange them

    every day i receive random number of cases sometime they are 400 - sometime 800 some time 200 or sometime 40

    How I can adjust this macro to only run to columns like range A:A (first row in that column to end of that column last row) and range selection does not care whenever cases increased or decrease and properly arrange the sheet with the macro my generate macro code is this



    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by esaji; 04-15-2021 at 11:46 AM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,879

    Re: Arrange exported raw case sheet

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between [code]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/code] tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    09-20-2010
    Location
    islamabad
    MS-Off Ver
    Excel 2019
    Posts
    83

    Re: Arrange exported raw case sheet

    Hi

    I fixed the tag issue as it was my first post in this section

  4. #4
    Registered User
    Join Date
    09-20-2010
    Location
    islamabad
    MS-Off Ver
    Excel 2019
    Posts
    83

    Re: Arrange exported raw case sheet

    Gents is there any suggestion for fixing the macro to work on dynamic range of excel sheet in column A and C ? currently it only check the range which is selected like A2-A200
    and same on C I wanted to macro to check irresepctive of the range as it changes on daily basis A:A or C:C like this

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Arrange exported raw case sheet

    Here's how I read your problem.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    09-20-2010
    Location
    islamabad
    MS-Off Ver
    Excel 2019
    Posts
    83

    Re: Arrange exported raw case sheet

    Hi Jindon

    I change the macro on list of 1800 cases for one week - the code you provide is not picking the column C data that is i dont want to miss

    I created another macro that does not move the data but keep it in same sheet - but remove the duplicates Empty C columns and then arrange it date wise with last row of data
    with non duplicate

    can you please check this code and tell me how i can make it dynamic whatever is the range it does not matter but execute what I am seeing in 1800 records

    many thanks


    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    09-20-2010
    Location
    islamabad
    MS-Off Ver
    Excel 2019
    Posts
    83

    Re: Arrange exported raw case sheet

    You just need to help me remove the range that is static to (excel need to check if duplicates without C columns data are remove) please arrange the sheet
    without duplicates (with C column owner info) and then the second part mix it with the columns that are empty with C column

    IF and else is i think required

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    09-20-2010
    Location
    islamabad
    MS-Off Ver
    Excel 2019
    Posts
    83

    Re: Arrange exported raw case sheet

    Hi Jindon

    I have a suggestion for your code - can you add another check in the macro that check first Display ID for duplicates and then column C (if its empty) -select all rows

    Duplicate from DisplayID with empty from C row it shall be deleted

    rest your code is working fine but the results are removing everything that contains C(owner) filled row in that column

    thanks

  9. #9
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Arrange exported raw case sheet

    I don't understand what you are talking about.

    As I said the code was based on my guess, so if it is not working, just ignore it.

+ 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] logo not show on exported sheet
    By dodde in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-18-2019, 07:19 AM
  2. [SOLVED] Setting print area on exported sheet help
    By bdouglas1011 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-18-2018, 09:45 AM
  3. Export sheet to PDF - fails unless user has manually exported a PDF
    By kylesom in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-13-2018, 08:34 AM
  4. Looking for easy way to import an excel exported .htm sheet
    By brusk in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-12-2018, 12:24 PM
  5. Replies: 4
    Last Post: 07-26-2012, 05:49 PM
  6. Macro to remove formula links from exported sheet
    By drgwhizz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-17-2012, 08:41 AM
  7. Replies: 0
    Last Post: 05-20-2009, 05:37 AM

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