Macro Code to Dynamically paste range in a new sheet

Sylvine

New Member
Joined
May 13, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I need help with a macro formula that can paste the different coloured ranges as shown in different sheets by utilizing Order Id and status and looping to next id after pasting first. for example the range highlighted in green would be pasted in one sheet, blue one in another and red one in another sheet
Screenshot 2024-05-13 204547.png
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
What would be the Sheet Names? Based on what you've said so far, it would have 3 tabs called Green, Blue, and Red. Are you manually coloring these cells and then wanting to run a macro to put into the other tabs? Or is it more specific of the Order ID (i.e. Iphone, Jacket, Accessories).
 
Upvote 0
What would be the Sheet Names? Based on what you've said so far, it would have 3 tabs called Green, Blue, and Red. Are you manually coloring these cells and then wanting to run a macro to put into the other tabs? Or is it more specific of the Order ID (i.e. Iphone, Jacket, Accessories).
the sheet name should be extracted from order ID. For example: Considering table to be present in sheet1, sheet2 should be named as Iphone and first three rows should be pasted. The colours are only for separating ranges.
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,632
Latest member
jladair

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