Code to create a sheet and get selected data from the source sheet

RAJESH1960

Banned for repeated rules violations
Joined
Mar 26, 2020
Messages
2,313
Office Version
  1. 2019
Platform
  1. Windows
Hello code experts
There is only one sheet in the workbook B2B other than the Code button sheet. When I press the button, a new sheet is created "Portal". I need your help to get the "Not Imported" sheet with the help of a code. The "Not Imported" sheet is manually created to show the expected result. With a single button I want both the sheets to be created.
Create a copy of Portal In the Random Access Memory and with the help of below steps create the Not imported sheet. As some of the rows are combined in the portal sheet by the code, so, copy the original rows from B2B to Not imported. The Portal sheet is only for reference to get the 0 Rates and rows with Yes / Y in column H. In the portal sheet, If the value of K, L and M are 0 (Match Entire cell contents), then shift those rows to "Not Imported" sheet row 7 onwards as displayed in B2B. Please note: not from portal but from B2B. In some rows where the value of Invoice Value and Taxable are same shift those rows to "Not Imported" sheet as displayed in B2B (Not available in this case). Please note: not from portal but from B2B. Shift the rows with Yes or sometimes Y in column H to "Not Imported" sheet as displayed in B2B. Please note: not from portal but from B2B. Thank you in advance.
Get selected data in Not imported sheet.xlsm
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
This is to let you know that the above query has still remained unsolved.
 
Upvote 0
This is another code which can help to cut the unwanted rows in the sheet if the criteria is matched. I have 2 criteria to be met and not just cut but cut and copy them to a new sheet with the same headings. Hope this will help the code experts to some extent.
 

Attachments

  • cut rows.png
    cut rows.png
    167.1 KB · Views: 8
Upvote 0
sorry by mistake
 
Last edited:
Upvote 0
The above post is solved now.
 
Upvote 0

Forum statistics

Threads
1,214,575
Messages
6,120,342
Members
448,956
Latest member
Adamsxl

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top