How to hide text from excel using vba macro?
相关问题
- Excel sunburst chart: Some labels missing
- Error handling only works once
- Error handling only works once
- Excel formula in VBA code
- Excel VBA run time error 450 from referencing a ra
相关文章
- Get column data by Column name and sheet name
- programmatically excel cells to be auto fit width
- Unregister a XLL in Excel (VBA)
- Unregister a XLL in Excel (VBA)
- How to prevent excel from truncating numbers in a
- numeric up down control in vba
- Declare a Range relative to the Active Cell with V
- What's the easiest way to create an Excel tabl
Hide complete rows or columns
You can hide complete rows or columns e. g. by this:
You can also group rows or columns and set the outline level to hide them:
A single cell can not be hidden (it could only be deleted, but that would move the other cells beneath it).
Hide parts of a cell
Unfortunately you can not hide some characters within a cell like in Microsoft Word by
Font.Hidden
.But by following code you can change all blue characters to very small white ones.
As there are many different "blue" colors (not only RGB(0,0,255)), my code checks, if the blue part of the color is higher than the red and green part.
If you want to have the white characters as narrow as possible, you may additionally chose a narrow font and a small font size like this: