I'd select that range to fix and use Edit|Replace to remove those 000 values.
Are they really just 0's with a custom format--or are they the text "000"?
Either way, be careful when you do this. You want to match the whole cell (not
turn A001 into A1).
Then you can use the techniques at Debra Dalgleish's site to file those cells:
http://contextures.com/xlDataEntry02.html
There's a manual technique and some code at that site.
Lacey wrote:
Hi!
I need to write a macro to autofill a column or columns that contain a
Department Code, Product Code and Class, for example
Colmn A Column B Column C
Department Code Product Code Class
A001 000 010
000 100 000
000 100 000
000 000 020
A002 000 000
000 200 000
000 200 000
000 000 030
What I'd like the macro to do is autofill the department code in Column A
until it reaches the next department code. The Product Code and Class
correspond to the specific Department Code (until it changes). I'd also like
to autofill the Product Code and Class until each changes as well.
What would be the best way to write this macro?
The values being filled over are zero; however, I need the macro to
identify when there's a new Department code and then continue to fill those
fields with the new Department Code each time it changes. The spreadsheet
only shows the Department Code once, the following cells contain zeros until
the next Department Code. However, I want the cells filled with the correct
data (not zeros) until it reaches a new code...
Thanks!
--
Dave Peterson