A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Yeah figured it out right before you replied. Long road for me though. I kinda novice at vba for excel. Most of my knowledge lies in Google Action Script. For some reason I was getting an error with the deletion of my original with structure so I went back to my original for that.
My Completed Code:
Sub feeder1()
Dim ActNm As String
Dim ShName As String
Dim FillRng As Range
Dim FormulaRng As Range
With ActiveWorkbook.Sheets
Sheets("HelpTemplate").Visible = True
Sheets("HelpTemplate").Select
Sheets("HelpTemplate").Copy after:=Worksheets(Worksheets.Count)
Sheets("HelpTemplate").Visible = False
End With
ActNm = ActiveSheet.Name
On Error Resume Next
ActiveSheet.Name = "Template"
NoName: If Err.Number = 1004 Then ActiveSheet.Name = InputBox("Please Name New System.")
If ActiveSheet.Name = ActNm Then GoTo NoName
On Error GoTo 0
ShName = ActiveSheet.Name
With Sheets("Main")
.Range("A" & Rows.Count).End(xlUp).Offset(1, 0).Value = ShName
.Range("A" & Rows.Count).End(xlUp).Offset(0, 1).Value = ("='" & ShName & "'!F47")
.Range("A" & Rows.Count).End(xlUp).Offset(0, 2).Value = ("='" & ShName & "'!I50")
End With
With Sheets("Mat Extended")
.Range("ALW1").End(xlToLeft).Offset(0, 1).Value = ShName
.Range("ALW2").End(xlToLeft).Offset(0, 1).Value = ("=SUMIF('" & ShName _
& "'!$B$3:$B$46,$B2,'" & ShName & "'!$D$3:$D$46)")
Set FormulaRng = .Range("ALW2").End(xlToLeft)
Set FillRng = Range(FormulaRng, FormulaRng.End(xlDown))
FillRng.FillDown
End With
Sheets(ShName).Range("B3").Select
End Sub