Hello all!
I've been hunting around looking for a way to update my file and I need a bit of extra help please.
My file has 250+ sheets in it and the first 2 are the main index and the calculation information base, the rest of the sheets are of individual products which have their own values for pricing purposes. I have plans to upgrade the machinery I am working with which means I need to upgrade my pricing mechanism to accurately show what my costs will be based on the new machinery.
OK, the first 4 columns of each workings sheet are fixed and do not need changing.
12 more columns need inserting before column E
my named range needs to be pasted into the gap, and replace the existing 3 columns of pricing calculations.
Any data outside of these columns shouldn't be harmed except for T4 which has a little update.
This is what I have so far, but bugs out when it reaches the paste function because I don't know how to get it to paste "data":
Thanks for reading
I've been hunting around looking for a way to update my file and I need a bit of extra help please.
My file has 250+ sheets in it and the first 2 are the main index and the calculation information base, the rest of the sheets are of individual products which have their own values for pricing purposes. I have plans to upgrade the machinery I am working with which means I need to upgrade my pricing mechanism to accurately show what my costs will be based on the new machinery.
OK, the first 4 columns of each workings sheet are fixed and do not need changing.
12 more columns need inserting before column E
my named range needs to be pasted into the gap, and replace the existing 3 columns of pricing calculations.
Any data outside of these columns shouldn't be harmed except for T4 which has a little update.
This is what I have so far, but bugs out when it reaches the paste function because I don't know how to get it to paste "data":
Code:
Sub Macro6()
'
' Keyboard Shortcut: Ctrl+Shift+X
'
Dim sht As Worksheet
Dim data As range
Set data = range("3!E1:R29")
For Each sht In ActiveWorkbook.Worksheets
Columns("E:O").Select
range(Selection, Selection.Offset(0, 0)).Insert shift:=xlToRight
range("e:s").Select
ActiveSheet.Paste
range("t4").Select
ActiveCell.FormulaR1C1 = "=RC[-18]/9"
Next sht
End Sub
Thanks for reading