我插入Microsoft Date and Time Picker Control,version 6.0)控件后编辑源代码,如下所示,
OptionExplicitPrivateSubDTPicker1_Change()ActiveCell.Value=DTPicker1.ValueDTPicker1.V...
Option Explicit
Private Sub DTPicker1_Change()
ActiveCell.Value = DTPicker1.Value
DTPicker1.Visible = False
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
With Me.DTPicker1
If Target.Row = 1 And Target.Count = 1 Then
.Visible = True
.Width = Target.Width + 15
.Left = Target.Left
.Top = Target.Top
.Height = Target.Height
Else
.Visible = False
End If
End With
End Sub
但是最终出来的却是横的,并不是一列的,请问这是为什么,我用的是07版的EXCEL 展开
Private Sub DTPicker1_Change()
ActiveCell.Value = DTPicker1.Value
DTPicker1.Visible = False
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
With Me.DTPicker1
If Target.Row = 1 And Target.Count = 1 Then
.Visible = True
.Width = Target.Width + 15
.Left = Target.Left
.Top = Target.Top
.Height = Target.Height
Else
.Visible = False
End If
End With
End Sub
但是最终出来的却是横的,并不是一列的,请问这是为什么,我用的是07版的EXCEL 展开
2012-01-12
展开全部
不了解
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询