D
Dolphinv4
Hi,
(I know I've sent a similar post b4. But i tried very
hard to find dat post and don't know why I can't find it.
Tried searching for all posts posted by me in all threads)
I need a macro such that it'll (1) print the whole
workbook, after that (2) select the first sheet up till
the sheet called "Acc". (I can't put the name of the
sheets coz they change all the time). (3) After selecting
those sheets, the macro will change the font of cells
(a1:a2) to red and then print the whole workbook again
(including those not selected in (2)). After that, (4)
the macro will select those sheets and change those cells
back to white font.
I tried to start with a simple macro as shown below. Not
only does it not work properly (the font does not change
back to white, there's an error 400).
Sub Print_Invs()
ThisWorkbook.PrintOut
Sheets().Select
Range("a1:a2").Select
Selection.Font.ColorIndex = 3
ThisWorkbook.PrintOut
Sheets().Select
Range("a1:12").Select
Selection.Font.ColorIndex = 2
End Sub
Can someone please help me out?
Thanks & sorry for posting another thread.
Regards,
Val
(I know I've sent a similar post b4. But i tried very
hard to find dat post and don't know why I can't find it.
Tried searching for all posts posted by me in all threads)
I need a macro such that it'll (1) print the whole
workbook, after that (2) select the first sheet up till
the sheet called "Acc". (I can't put the name of the
sheets coz they change all the time). (3) After selecting
those sheets, the macro will change the font of cells
(a1:a2) to red and then print the whole workbook again
(including those not selected in (2)). After that, (4)
the macro will select those sheets and change those cells
back to white font.
I tried to start with a simple macro as shown below. Not
only does it not work properly (the font does not change
back to white, there's an error 400).
Sub Print_Invs()
ThisWorkbook.PrintOut
Sheets().Select
Range("a1:a2").Select
Selection.Font.ColorIndex = 3
ThisWorkbook.PrintOut
Sheets().Select
Range("a1:12").Select
Selection.Font.ColorIndex = 2
End Sub
Can someone please help me out?
Thanks & sorry for posting another thread.
Regards,
Val