o Is your custom theme built in Windows or provided by a third-party company?
o My code attempts to solve the issue by applying an Office theme. If manually changing themes does not affect the background color, then this method can be discarded.
o I suggest you use a theme that gives the desired cell color.
gkhan(2) replied on <button title="See post history" class="msaActionText c-hyperlink message-user-info-link message-user-info-link-history" aria-expanded="false" aria-label="Date" ms.linkuserid="1b1ea22c-4b6c-4668-959e-26475f69c7b7" data-bi-linkuserid="1b1ea22c-4b6c-4668-959e-26475f69c7b7" data-paneltarget="#messageUserInfoHistoryc4be32b6-7207-476f-820f-7fe2bc1d6448" data-panelcontainer=".message-user-info" data-createddate="2017-10-10T07:40:05" data-bi-id="message-user-history-link">October 10, 2017</button>
<!-- MessageHistoryPanel.cshtml loaded via ajax -->
<button class="thread-message-content-reply-action-button msaActionText" data-bi-id="msgInReplyToLink">In reply to tkhyn's post on July 19, 2017 </button>
hi;
left Shift + left Alt + PrtScn
is the trick here I think.
you can quickly switch white mode and dark mode with seconds.
that helped me in this case.
I hope it helps you too
I do not think such a VBA exists. From the Internet:
I would like to try one last thing. What is the undesired background color and what is the desired one? Is it white?
Private Sub Workbook_Open()
With Me.Worksheets(1).Cells
.Borders.ColorIndex = 15
.Borders.Weight = 1
.Interior.ColorIndex = 0
End With
End Sub
When opening the workbook, this code should reset the layout on the first sheet only.
o Press alt+F11 to go to the VBE.
o Right click This Workbook on the left pane.
o Choose the show code option and paste it on the right pane.
Code:Private Sub Workbook_Open() With Me.Worksheets(1).Cells .Borders.ColorIndex = 15 .Borders.Weight = 1 .Interior.ColorIndex = 0 End With End Sub
Private Sub Workbook_Open()
With Me.Worksheets(1).Cells
.Borders.ColorIndex = 15
.Borders.Weight = 1
.Interior.ColorIndex = 0
End With
MsgBox "The above sheet has been formatted.", 64, Me.Worksheets(1).Name
End Sub
o Yes, XLSM is the correct extension.
o The version below will confirm that it executed when opening the workbook, tell me if it worked.
o I can post my test workbook if necessary.
Code:Private Sub Workbook_Open() With Me.Worksheets(1).Cells .Borders.ColorIndex = 15 .Borders.Weight = 1 .Interior.ColorIndex = 0 End With MsgBox "The above sheet has been formatted.", 64, Me.Worksheets(1).Name End Sub