CUT & PASTE a Row & Worksheet toghether.

coxycoxycoxy

Board Regular
Joined
Apr 22, 2009
Messages
165
Good Morning.

Can anyone help, i would like to cut a row(s) from a worksheet & also another worksheet within the same workbook Together.

I'm am using excel as a small inventory and have one worksheet for each of the items we stock and for each worksheet their is a row which has pasted links in a control sheet. (or index Sheet) the following piece of code renames the worksheet based on the product code entered in cell E3 of that worksheet

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address(0, 0) <> "E3" Or Target.Count > 1 Then Exit Sub
ActiveSheet.Name = Left(Target, 31)
End Sub

Their is then another macro that paste the links form the worksheet to the control sheet, so the sheet name is always the same on the control sheet & worksheet.

the Control Sheet is Called "CONTROL.SHEET" and the links that display the product codes/sheet names are in column B on the control.sheet.

so my question is: Is their a way using vba to cut the row from the CONTROL.SHEET and the corresponding worksheet using the sheet name as a reference. and pasting both to a different workbook Called ZERO STOCK. keeping all conditional formating and pasted links.

I am aware this is probablly a tall order, but if anyone help or shed some light it would be most appreciated.


Best Regards

Mark
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

Forum statistics

Threads
1,224,603
Messages
6,179,854
Members
452,948
Latest member
UsmanAli786

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