When presenting a spreadsheet to a class, I would like to blackout the screen/projector at times so I can use the white board behind the projection.
In powerpoint, there is a shortcut by typing "B" during a presentation and it blackouts the screen.
I wrote a quick and dirty macro to do this:
This works unless there is formatting present in the document already. In that case, it clears the formatting.
Any ideas to blackout on a keystroke, then return to previous formatting on "un-blackout"?
In powerpoint, there is a shortcut by typing "B" during a presentation and it blackouts the screen.
I wrote a quick and dirty macro to do this:
Code:
Sub blackout()
If Cells(2, 2).Interior.ColorIndex <> 1 Then
Cells.Select
Selection.Interior.ColorIndex = 1
Cells(1, 1).Select
Else
Cells.Select
Selection.Interior.ColorIndex = Clear
Cells(1, 1).Select
End If
End Sub
This works unless there is formatting present in the document already. In that case, it clears the formatting.
Any ideas to blackout on a keystroke, then return to previous formatting on "un-blackout"?