Newbie to VBA.
I have a simple excel template that generates summarized data from a source file. In other words, I click a button and the numbers are refreshed on this template on one of the tabs.
On this template, however, there is a row that I no longer need. I want to remove it completely but I cannot just delete it. Let's say this is 'Cost of Goods Sold' (see code), and I don't need this anymore. The number attached to COGS is now 0 because my source file no longer has info abt this.
The entire chunk of code here is for this Cost of Goods Sold row, which I don't understand completely... Again, just want to remove as no longer relevant.
Pls advise what I can do. Much appreciated.
If Range("B" & t) = "Cost of goods sold" Then
Range("B" & t, "G" & t).Select
Selection.Copy
Sheets("Summary").Select
Range("A" & (rowXListTotal - z + d)).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
d = d + 1
Worksheets("SP").Select
End If