icepirates1234
MIS
Hello, Im in 'Table' view right now...and in
Column 23 (Column Letter W) if you had to assign a letter, in my list there are sets of numbers like this:
02-03-005-09-W2
02-03-005-09-W2
The reason there is two numbers is because one is volume 1, one is volume 2...
The table Im using is 100,000 lines...And Im trying to develop a Macro that I can run that will automatically look at the numbers and when it see's two of the same it will add a 1.0, 2.0, and so on in the column next to the column that has the numbers.
The column thats beside the number column is called Volumes and is column 24....When it only finds one number it will just be 1.0...
I have a macro that does this in Excel
Private Sub CommandButton1_Click()
With Range(Cells(2, "A"), Cells(Rows.Count, "A").End(xlUp)).Offset(, 1)
.FormulaR1C1 = "=COUNTIF(R1C1:RC1,RC1)"
.NumberFormat = "0.0"
Remove this comment if wish for formulae to persist in Column B rather than just result
.Value = .Value
End With
End Sub
Which works, but when using Access, and going into the VBE editor, Im not quite sure how do apply this same concept...
(Ive tried using what I have above, and it doesn't work)
Any Help would be great.