G
Guest
On my form on the first sheet of the workbook, I want to put a button that,
when clicked, will change the formatting on another sheet (a selection of
cells, actually) from the generic font to white - basically blanking it out
from the page.
I also want another button to add that information back in.
I played around in a blank sheet and was able to change the font color of
cell text, but when I tried to apply it to my actual form, it doesn't work.
Here's what I recorded:
Sheets("Option").Select
Range("B26:E44").Select
Selection.Font.ColorIndex = 4
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
Selection.Borders(xlEdgeLeft).LineStyle = xlNone
Selection.Borders(xlEdgeTop).LineStyle = xlNone
Selection.Borders(xlEdgeBottom).LineStyle = xlNone
Selection.Borders(xlEdgeRight).LineStyle = xlNone
Selection.Borders(xlInsideVertical).LineStyle = xlNone
Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
"Options" contains the information I want to white out, if necessary. The
button is placed on another sheet called "Enter Info."
when clicked, will change the formatting on another sheet (a selection of
cells, actually) from the generic font to white - basically blanking it out
from the page.
I also want another button to add that information back in.
I played around in a blank sheet and was able to change the font color of
cell text, but when I tried to apply it to my actual form, it doesn't work.
Here's what I recorded:
Sheets("Option").Select
Range("B26:E44").Select
Selection.Font.ColorIndex = 4
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
Selection.Borders(xlEdgeLeft).LineStyle = xlNone
Selection.Borders(xlEdgeTop).LineStyle = xlNone
Selection.Borders(xlEdgeBottom).LineStyle = xlNone
Selection.Borders(xlEdgeRight).LineStyle = xlNone
Selection.Borders(xlInsideVertical).LineStyle = xlNone
Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
"Options" contains the information I want to white out, if necessary. The
button is placed on another sheet called "Enter Info."

Thanks so much!!! I'm learning a lot around here...