admin 管理员组

文章数量: 1086019


2024年1月14日发(作者:游戏服务器源码免费)

技巧1 使用DTP控件输入日期Microsoft Date and Time Picker Control 在工作表中输入日期可以使用日期时间控件(6.0,简称DTP控件)。在工作表中单击菜单“视图”→“工具栏”→“控件工具箱”DTP控件如图1-1所示,在工作表中添加一个DTP控件。,选择“其他控件”中的图1-1 选择DTP控件在设计模式下双击DTP控件写入下面的代码:#001 Private Sub Worksheet_SelectionChange(ByVal Target As Range)

#002 With er1

#003 If = 1 And = 2 And (Not =

1) Or ells Then

#004 .Visible = True

#005 .Top =

#006 .Left =

#007 .Height =

#008 .Width =

#009 If (1, 1) <> "" Then

#010 .Value = (1, 1).Value

#011 Else

#012 .Value = Date


本文标签: 控件 表中 工作 使用 源码