snasui.com ยินดีต้อนรับ ยินดีต้อนรับสู่กระดานถามตอบ Excel and VBA และอื่น ๆ ที่เป็นมิตรกับทุกท่าน มีไฟล์แนบมหาศาล ช่วยให้ท่านค้นหาและติดตามศึกษาได้โดยง่าย สมาชิกท่านใดที่ยังไม่ได้ระบุ Version ของ Excel ที่ใช้งานจริง สามารถทำตาม Link นี้เพื่อจะได้รับคำตอบที่ตรงกับ Version ของท่านครับ ระบุ Version ของ Excel
Sub ซ่อน()
'
' ซ่อน แมโคร
'
'
Range("B6:G55").Select
With Selection.Font
.ThemeColor = xlThemeColorDark1
.TintAndShade = 0
End With
Range("B6").Select
End Sub
Sub แสดง()
'
' แสดง แมโคร
'
'
Range("B6:G55").Select
With Selection.Font
.ColorIndex = xlAutomatic
.TintAndShade = 0
End With
Range("B6").Select
End Sub
เวลาเรียน ต้นฉบับ.xlsm
You do not have the required permissions to view the files attached to this post.
Range("B6:G55").Select
If Range("b6").Font.ColorIndex = xlAutomatic Then
With Selection.Font
.ThemeColor = xlThemeColorDark1
.TintAndShade = 0
End With
Else
With Selection.Font
.ColorIndex = xlAutomatic
.TintAndShade = 0
End With
End If
Range("B6").Select
Range("B6:G55").Select
If Range("b6").Font.ColorIndex = xlAutomatic Then
With Selection.Font
.ThemeColor = xlThemeColorDark1
.TintAndShade = 0
End With
Else
With Selection.Font
.ColorIndex = xlAutomatic
.TintAndShade = 0
End With
End If
Range("B6").Select