Important Background: I am in the process of emulating a daily process using VBA, the caveat is I am making sure the entire process looks like all the steps I normally take. This is not nearly as effcient as I have found VBA can be but I am trying to remove the fear response my office has for the word "MACRO" (ominous music). They will learn it isn't voodoo and I can get to the point of really saving time/ioncreasing accuracy on other items.
So after creating pivotTables, formatting columns and learning a bunch of goodies from the board I am now at this point. (Sorry I still cannot use special software on this comp to make a nice chart for the board)
A B C D
Sum of Amount Gross
Purchase order Invoice No. Due Date Total
12584 19055E 8/18/2011 3,400.51
45896 39499E 8/19/2011 508.96
0 58954L 9/5/2011 1,100.00
0 8965E 9/3/2011 65.20
856896 11589L 8/30/2011 181.19
This represents the top section of the pasted values from a PivotTable.
What I am trying to do is create a Column E called COUNT that places a "1" next to every Item in Column D that has a actual total so it will skip the top blank row and the "Total" header. This wil be used for yet another PivotT
I've tried more complex ideas (and searched the heck out of this board) to recognize only the number values in D but realized I have never simply created any column with a set value based on any criteria in VBA. So starting over I am at the point below and Cannot get any version of it to work:
'Create the COUNT Column
LR = Range("D2" & Rows.Count).End(xlUp).Row
With Range("E2:E" & LR).Value = 1
End With
Any advice is appreciated.
So after creating pivotTables, formatting columns and learning a bunch of goodies from the board I am now at this point. (Sorry I still cannot use special software on this comp to make a nice chart for the board)
A B C D
Sum of Amount Gross
Purchase order Invoice No. Due Date Total
12584 19055E 8/18/2011 3,400.51
45896 39499E 8/19/2011 508.96
0 58954L 9/5/2011 1,100.00
0 8965E 9/3/2011 65.20
856896 11589L 8/30/2011 181.19
This represents the top section of the pasted values from a PivotTable.
What I am trying to do is create a Column E called COUNT that places a "1" next to every Item in Column D that has a actual total so it will skip the top blank row and the "Total" header. This wil be used for yet another PivotT
I've tried more complex ideas (and searched the heck out of this board) to recognize only the number values in D but realized I have never simply created any column with a set value based on any criteria in VBA. So starting over I am at the point below and Cannot get any version of it to work:
'Create the COUNT Column
LR = Range("D2" & Rows.Count).End(xlUp).Row
With Range("E2:E" & LR).Value = 1
End With
Any advice is appreciated.