is there anyway of tidying this code up
is there such a think as a code tidier?
im not sure but i think this looks a mess
dont get me wrong it works great but it does seem excessive
thanksPlease Login or Register to view this content.
is there anyway of tidying this code up
is there such a think as a code tidier?
im not sure but i think this looks a mess
dont get me wrong it works great but it does seem excessive
thanksPlease Login or Register to view this content.
please ignore this
cat see how to delete
Last edited by stevesunfold; 12-25-2008 at 10:28 AM.
Hello stevesunfold,
This can be condensed by using the BorderAround method. There are four possible arguments: Line Style, Weight, ColorIndex, and Color. If can specify either Line Style or Weight, but not both. The same holds for Color Index and Color. Unless the inside Vertical, Horizontal, and diagonals have been set in the cells previously, you don't need to include them. This example is based on Excel 2003.
Sincerely,Please Login or Register to view this content.
Leith Ross
hi leith
getting an error
compile error
end select without select case
Hello stevesunfold,
Bad editing on my part. I didn't change a "Select" to "With". This should work.
Sincerely,Please Login or Register to view this content.
Leith Ross
Leith types faster than I think. The property is BorderAround:
Please Login or Register to view this content.
Entia non sunt multiplicanda sine necessitate
hi guys
getting a run time error 438 from yours leith
object doesnt support this property or method
highlights this lineand on yours shg it only clears a few cells h11 to h26Please Login or Register to view this content.
Hello stevesunfold,
I am really doing good today - another typo. Should be...
Sincerely,Please Login or Register to view this content.
Leith Ross
thanks for trying guys
unfortunately leith that does the same as shg one
i have to go offline now
it is xmas day after all lol
Steve, do you see the line that clears cell contents in the code?and on yours shg it only clears a few cells h11 to h26
Do you need help to edit it to clear other cells?
hi guys
thanks for your efforts
please find the attached this is how it should look after its cleared and thats how it looks after the huge original code
bump bump bump
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks