+ Reply to Thread
Results 1 to 3 of 3

Remove Un-Necessary Data by VBA

  1. #1
    Registered User
    Join Date
    06-04-2018
    Location
    Punjab, Pakistan
    MS-Off Ver
    2016
    Posts
    61

    Remove Un-Necessary Data by VBA

    Hi All Expertise,
    i have to make a report multiple times a day and it takes too much time because it has different steps pls provide a VBA code to do it automatically by single key or button. Step wise description:
    Step 1. I go to first data sheet select from (C17:AN17) to 1 row # 1000 then copy it and paste in a new worksheet.
    Step 2. I select 2nd data sheet from (C21:AN21) to last data row which will be between 1 to 1000, copy it and paste in that sheet where i paste 1st sheet data. (Below that data).
    Step 3. Delete Row# 2 & 3.
    Step 4. Delete Columns (TOTAL PCS, SHRINKAG, Width, Shade, Balance & all blanks columns).
    Step 5. Copy data from (D1:Last data cell) and paste in Row # 2.
    Step 6. Delete Row # 01.
    Step 7. Insert Filter. Open filter in column C and delete blank rows.
    Step 8. Delete column C.
    Now I have only that data which I require.
    Step 9. Unpivot Columns. (I have VBA code for it)
    Please Login or Register  to view this content.
    Step 10. Some cuts have more than on value row assign them numbering. (I have VBA for this
    Please Login or Register  to view this content.
    Data Sheets may be 1 to 15.
    Attached Files Attached Files
    Last edited by Navi_G; 05-11-2021 at 07:56 AM.

  2. #2
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: Remove Un-Necessary Data by VBA

    This code assumes 1st and second sheets are called 30 and 32. Your steps 9 and 10 are incorporated. Give it a try

    Please Login or Register  to view this content.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,820

    Re: Remove Un-Necessary Data by VBA

    Administrative Note:

    This is the third offence. As you seem not to care about our rules, I am issuing a 10-day timeout to give you time to read them and accept them. If you continue to ignore them after that, you will be banned permanently.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. No help to be offered until the link is provided.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. Replies: 6
    Last Post: 12-13-2018, 10:31 AM
  2. [SOLVED] Remove duplicated data and inform user how many data have been removed using macro
    By SHELLY567 in forum Excel Programming / VBA / Macros
    Replies: 29
    Last Post: 01-16-2018, 02:05 AM
  3. data should remove from bottom list when I select data from drop-down
    By AaruJaan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-05-2018, 05:49 PM
  4. Replies: 6
    Last Post: 11-25-2015, 02:08 AM
  5. [SOLVED] Compare Column 1 to Col 2, if data in Col1 = Col2, remove the row containing that data
    By Trevasaurus in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-04-2012, 05:28 PM
  6. CheckBox copies data when checked but needs to also remove data when unchecked
    By matrixpom in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 10-29-2012, 03:34 AM
  7. Replies: 1
    Last Post: 10-23-2012, 09:12 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