以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  锁定列列名字体变灰  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=113015)

--  作者:实话实说
--  发布时间:2018/1/7 9:14:00
--  锁定列列名字体变灰
谁帮我看看下面代码错在哪里?
For Each c As Col In Tables("BOM").cols
    If c.AllowEdit = False Then
        Tables("BOM").SetHeaderCellForeColor("c",Color.WhiteSmoke)   \'字颜色
    End If
Next

--  作者:y2287958
--  发布时间:2018/1/7 10:08:00
--  
For Each c As Col In Tables("BOM").cols
    If c.AllowEdit = False Then
        Tables("BOM").SetHeaderCellForeColor(c.Name,Color.WhiteSmoke)   \'字颜色
    End If
Next

--  作者:实话实说
--  发布时间:2018/1/7 11:39:00
--  
y2287958