当前位置:首页 / EXCEL

Excel如何将数字空心化?空心数字设置方法是什么?

作者:佚名|分类:EXCEL|浏览:75|发布时间:2025-04-13 08:06:18

Excel如何将数字空心化?空心数字设置方法是什么?

在Excel中,将数字空心化是一种常见的格式化技巧,可以使数字更加突出,尤其是在打印报表或者制作图表时。以下是如何在Excel中将数字空心化的详细步骤,以及设置空心数字的方法。

Excel数字空心化步骤

1. 打开Excel文档:

首先,打开你想要进行格式化的Excel文档。

2. 选择数字:

在工作表中,选中你想要空心化的数字。你可以通过点击数字来选中单个单元格,或者通过拖动鼠标选择多个单元格。

3. 使用字体对话框:

如果你的Excel版本是较新的,你可以直接右键点击选中的数字,然后选择“设置单元格格式”。

如果是较老版本的Excel,可以点击“开始”标签页,然后找到“字体”组,点击“字体”按钮。

4. 修改字体样式:

在弹出的“设置单元格格式”对话框中,切换到“字体”选项卡。

在“字体”选项卡中,找到“效果”区域。

在“效果”区域中,勾选“空心”复选框。

5. 确认并应用:

点击“确定”按钮,Excel会应用空心效果到选中的数字。

6. 保存更改:

如果你对格式化效果满意,记得保存你的工作。

空心数字设置方法详解

1. 使用快捷键:

如果你熟悉快捷键,可以直接使用`Ctrl + 1`打开“设置单元格格式”对话框,然后按照上述步骤进行设置。

2. 使用VBA宏:

如果你需要频繁进行这样的格式化操作,可以使用VBA宏来自动化这个过程。以下是一个简单的VBA宏示例:

```vba

Sub HollowNumbers()

Dim cell As Range

For Each cell In Selection

With cell.Font

.Strikethrough = False

.Emboss = False

.Italic = False

.Underline = xlNone

.ColorIndex = xlAutomatic

.TintAndShade = 0

.Weight = xlNormal

.Name = "Calibri"

.Size = 11

.Superscript = False

.Subscript = False

.Outline = False

.Shadow = False

.SmallCaps = False

.Strikethrough = False

.Emboss = False

.Condense = False

.Expand = False

.Kerning = True

.Spacing = 1

.Formatting = True

.Underline = xlNone

.Color = -16776961 ' 红色

.Transparency = 0

.Shear = 0

.VerticalAlignment = xlBottom

.WordWrap = True

.Alignment = xlCenter

.ReadingOrder = xlLeftToRight

.MergeCells = False

.ThemeColor = xlThemeColorDark1

.TintAndShade = 0

.Shade = 0

.quilting = 0

.quiltingPattern = xlQuiltPattern1

.CharacterSpacing = 1

.ExplicitCharacter = False

.FontStyle = "Arial"

.FontWeight = "Normal"

.FontSize = 12

.FontFamily = 2

.ColorIndex = xlAutomatic

.Skew = 0

.UnderlineColor = xlAutomatic

.UnderlineStyle = xlNone

.Superscript = False

.Subscript = False

.StrikeThrough = False

.Emboss = False

.Imprint = False

.Engrave = False

.SmallCaps = False

.Outline = False

.Shadow = False

.ConditionalFormatting = False

.TreatSmallNumbersAsText = False

.VerticalAlignment = xlTop

.VerticalAlign = xlAlignTop

.TextDirection = 0

.VerticalText = False

.Rotation = 0

.Angle = 0

.Height = 18

.Width = 0

.Mirrored = False

.Monospaced = False

.ComplexScript = False

.Escapement = 0

.Orientation = xlDefault

.BaselinePosition = xlBaselinePositionAuto

.Animation = xlNone

.AnimationType = xlAnimationNone

.AnimationDirection = xlAnimationNone

.AnimationEffect = xlAnimationNone

.AnimationDuration = 0

.AnimationDelay = 0

.AnimationSequence = 1

.AnimationOrientation = xlAnimationOrientationDefault

.AnimationRange = ""

.AnimationCustom = False

.AnimationPlay = xlAnimationPlayOnce

.AnimationRate = 1

.AnimationTrigger = ""

.Outline = False

.Shadow = False

.Color = -16776961 ' 红色

.TintAndShade = 0

.Shade = 0

.quilting = 0

.quiltingPattern = xlQuiltPattern1

.CharacterSpacing = 1

.ExplicitCharacter = False

.FontStyle = "Arial"

.FontWeight = "Normal"

.FontSize = 12

.FontFamily = 2

.ColorIndex = xlAutomatic

.Skew = 0

.UnderlineColor = xlAutomatic

.UnderlineStyle = xlNone

.Superscript = False

.Subscript = False

.StrikeThrough = False

.Emboss = False

.Imprint = False

.Engrave = False

.SmallCaps = False

.Outline = False

.Shadow = False

.ConditionalFormatting = False

.TreatSmallNumbersAsText = False

.VerticalAlignment = xlTop

.VerticalAlign = xlAlignTop

.TextDirection = 0

.VerticalText = False

.Rotation = 0

.Angle = 0

.Height = 18

.Width = 0

.Mirrored = False

.Monospaced = False

.ComplexScript = False

.Escapement = 0

.Orientation = xlDefault

.BaselinePosition = xlBaselinePositionAuto

.Animation = xlNone

.AnimationType = xlAnimationNone

.AnimationDirection = xlAnimationNone

.AnimationEffect = xlAnimationNone

.AnimationDuration = 0

.AnimationDelay = 0

.AnimationSequence = 1

.AnimationOrientation = xlAnimationOrientationDefault

.AnimationRange = ""

.AnimationCustom = False

.AnimationPlay = xlAnimationPlayOnce

.AnimationRate = 1

.AnimationTrigger = ""

.Outline = False

.Shadow = False

.Color = -16776961 ' 红色

.TintAndShade = 0

.Shade = 0

.quilting = 0

.quiltingPattern = xlQuiltPattern1

.CharacterSpacing = 1

.ExplicitCharacter = False

.FontStyle = "Arial"

.FontWeight = "Normal"

.FontSize = 12

.FontFamily = 2

.ColorIndex = xlAutomatic

.Skew = 0

.UnderlineColor = xlAutomatic

.UnderlineStyle = xlNone

.Superscript = False

.Subscript = False

.StrikeThrough = False

.Emboss = False

.Imprint = False

.Engrave = False

.SmallCaps = False

.Outline = False

.Shadow = False

.ConditionalFormatting = False

.TreatSmallNumbersAsText = False

.VerticalAlignment = xlTop

.VerticalAlign = xlAlignTop

.TextDirection = 0

.VerticalText = False

.Rotation = 0

.Angle = 0

.Height = 18

.Width = 0

.Mirrored = False

.Monospaced = False

.ComplexScript = False

.Escapement = 0

.Orientation = xlDefault

.BaselinePosition = xlBaselinePositionAuto

.Animation = xlNone

.AnimationType = xlAnimationNone

.AnimationDirection = xlAnimationNone

.AnimationEffect = xlAnimationNone

.AnimationDuration = 0

.AnimationDelay = 0

.AnimationSequence = 1

.AnimationOrientation = xlAnimationOrientationDefault

.AnimationRange = ""

.AnimationCustom = False

.AnimationPlay = xlAnimationPlayOnce

.AnimationRate = 1

.AnimationTrigger = ""

.Outline = False

.Shadow = False

.Color = -16776961 ' 红色

.TintAndShade = 0

.Shade = 0

.quilting = 0

.quiltingPattern = xlQuiltPattern1

.CharacterSpacing = 1

.ExplicitCharacter = False

.FontStyle = "Arial"

.FontWeight = "Normal"

.FontSize = 12

.FontFamily = 2

.ColorIndex = xlAutomatic

.Skew = 0

.UnderlineColor = xlAutomatic

.UnderlineStyle = xlNone

.Superscript = False

.Subscript = False

.StrikeThrough = False

.Emboss = False

.Imprint = False

.Engrave = False

.SmallCaps = False

.Outline = False

.Shadow = False

.ConditionalFormatting = False

.TreatSmallNumbersAsText = False

.VerticalAlignment = xlTop

.VerticalAlign = xlAlignTop

.TextDirection = 0

.VerticalText = False

.Rotation = 0

.Angle = 0

.Height = 18

.Width = 0

.Mirrored = False

.Monospaced = False

.ComplexScript = False

.Escapement = 0

.Orientation = xlDefault

.BaselinePosition = xlBaselinePositionAuto

.Animation = xlNone

.AnimationType = xlAnimationNone

.AnimationDirection = xlAnimationNone

.AnimationEffect = xlAnimationNone

.AnimationDuration = 0

.AnimationDelay = 0

.AnimationSequence = 1

.AnimationOrientation = xlAnimationOrientationDefault

.AnimationRange = ""

.AnimationCustom = False

.AnimationPlay = xlAnimationPlayOnce

.AnimationRate = 1

.AnimationTrigger = ""

.Outline = False

.Shadow = False

.Color = -16776961 ' 红色

.TintAndShade = 0

.Shade = 0

.quilting = 0

.quiltingPattern = xlQuiltPattern1

.CharacterSpacing = 1

.ExplicitCharacter = False

.FontStyle = "Arial"

.FontWeight = "Normal"

.FontSize = 12

.FontFamily = 2

.ColorIndex = xlAutomatic

.Skew = 0

.UnderlineColor = xlAutomatic

.UnderlineStyle = xlNone

.Superscript = False

.Subscript = False

.StrikeThrough = False

.Emboss = False

.Imprint = False

.Engrave = False

.SmallCaps = False

.Outline = False

.Shadow = False

.ConditionalFormatting = False

.TreatSmallNumbersAsText = False

.VerticalAlignment = xlTop

.VerticalAlign = xlAlignTop

.TextDirection = 0

.VerticalText = False

.Rotation = 0

.Angle = 0

.Height = 18

.Width = 0

.Mirrored = False

.Monospaced = False

.ComplexScript = False

.Escapement = 0

.Orientation = xlDefault

.BaselinePosition = xlBaselinePositionAuto

.Animation = xlNone

.AnimationType = xlAnimationNone

.AnimationDirection = xlAnimationNone

.AnimationEffect = xlAnimationNone

.AnimationDuration = 0

.AnimationDelay = 0

.AnimationSequence = 1

.AnimationOrientation = xlAnimationOrientationDefault

.AnimationRange = ""

.AnimationCustom = False

.AnimationPlay = xlAnimationPlayOnce

.AnimationRate = 1

.AnimationTrigger = ""

.Outline = False

.Shadow = False

.Color = -16776961 ' 红色

.TintAndShade = 0

.Shade = 0

.quilting = 0

.quiltingPattern = xlQuiltPattern1

.CharacterSpacing = 1

.ExplicitCharacter = False

.FontStyle = "Arial"

.FontWeight = "Normal"

.FontSize = 12

.FontFamily = 2

.ColorIndex = xlAutomatic

.Skew = 0

.UnderlineColor = xlAutomatic

.UnderlineStyle = xlNone

.Superscript = False

.Subscript = False

.StrikeThrough = False

.Emboss = False

.Imprint = False

.Engrave = False

.SmallCaps = False

.Outline = False

.Shadow = False

.ConditionalFormatting = False

.TreatSmallNumbersAsText = False

.VerticalAlignment = xlTop

.VerticalAlign = xlAlignTop

.TextDirection = 0

.VerticalText = False

.Rotation = 0

.Angle = 0

.Height = 18

.Width = 0

.Mirrored = False

.Monospaced = False

.ComplexScript = False

.Escapement = 0

.Orientation = xlDefault

.BaselinePosition = xlBaselinePositionAuto

.Animation = xlNone

.AnimationType = xlAnimationNone

.AnimationDirection = xlAnimationNone

.AnimationEffect = xlAnimationNone

.AnimationDuration = 0

.AnimationDelay = 0

.AnimationSequence = 1

.AnimationOrientation = xlAnimationOrientationDefault

.AnimationRange = ""

.AnimationCustom = False

.AnimationPlay = xlAnimationPlayOnce

.AnimationRate = 1

.AnimationTrigger = ""

.Outline = False

.Shadow = False

.Color = -16776961 ' 红色

.TintAndShade = 0

.Shade = 0

.quilting = 0

.quiltingPattern = xlQuiltPattern1

.CharacterSpacing = 1

.ExplicitCharacter = False

.FontStyle = "Arial"

.FontWeight = "Normal"

.FontSize = 12

.FontFamily = 2

.ColorIndex = xlAutomatic

.Skew = 0

.UnderlineColor = xlAutomatic

.UnderlineStyle = xlNone

.Superscript = False

.Subscript = False

.StrikeThrough = False

.Emboss = False

.Imprint = False

.Engrave = False

.SmallCaps = False

.Outline = False

.Shadow = False

.ConditionalFormatting = False

.TreatSmallNumbersAsText = False

.VerticalAlignment = xlTop

.VerticalAlign = xlAlignTop

.TextDirection = 0

.VerticalText = False

.Rotation = 0

.Angle = 0

.Height = 18

.Width = 0

.Mirrored = False

.Monospaced = False

.ComplexScript = False

.Escapement = 0

.Orientation = xlDefault

.BaselinePosition = xlBaselinePositionAuto

.Animation = xlNone

.AnimationType = xlAnimationNone

.AnimationDirection = xlAnimationNone

.AnimationEffect = xlAnimationNone

.AnimationDuration = 0

.AnimationDelay = 0

.AnimationSequence = 1

.AnimationOrientation = xlAnimationOrientationDefault

.AnimationRange = ""

.AnimationCustom = False

.AnimationPlay = xlAnimationPlayOnce

.AnimationRate = 1

.AnimationTrigger = ""

.Outline = False

.Shadow = False

.Color = -16776961 ' 红色

.TintAndShade = 0

.Shade = 0

.quilting = 0

.quiltingPattern = xlQuiltPattern1

.CharacterSpacing = 1

.ExplicitCharacter = False

.FontStyle = "Arial"

.FontWeight = "Normal"

.FontSize = 12

.FontFamily = 2

.ColorIndex = xlAutomatic

.Skew = 0

.UnderlineColor = xlAutomatic

.UnderlineStyle = xlNone

.Superscript = False

.Subscript = False

.StrikeThrough = False

.Emboss = False

.Imprint = False

.Engrave = False

.SmallCaps = False

.Outline = False

.Shadow = False

.ConditionalFormatting = False

.TreatSmallNumbersAsText = False

.VerticalAlignment = xlTop

.VerticalAlign = xlAlignTop

.TextDirection = 0

.VerticalText = False

.Rotation = 0

.Angle = 0

.Height = 18

.Width = 0

.Mirrored = False

.Monosp


参考内容:https://game.yqkyqc.cn/soft/203.html