½Ð±Ð Excel VBA Àx¦s®æ¤ë¾ä³]©w°ÝÃD
- ©«¤l
- 455
- ¥DÃD
- 111
- ºëµØ
- 0
- ¿n¤À
- 563
- ÂI¦W
- 232
- §@·~¨t²Î
- Windows 10
- ³nÅ骩¥»
- Office 2019
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-11-7
- ³Ì«áµn¿ý
- 2024-11-23
|
½Ð±Ð Excel VBA Àx¦s®æ¤ë¾ä³]©w°ÝÃD
¤j®a¦n¡A§Ú¦bºô¸ô¤W¦³¤U¸ü¨ìºô¤Í¤w¼g§¹¦¨ªºÂI¿ï«ü©wÀx¦s®æ«á¡A¤ë¾ä·|show¥XÄæÂI¿ï
¦ý§Ú§âµ{¦¡½Xcopy¨ì·sªºExcel¤W«oµo¥Í¿ù»~
¬O§_þ¤@Ó»yªk§Ú»Ýnקï¡A½Ð¦U¦ì¥ý¶i«ü¾É
·PÁ¤j®a!
Private Sub Calendar1_Click()
Selection.Value = Calendar1.Value
Calendar1.Visible = False
Calendar1.Value = Date
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
'Yn¼W¥[±ý´¡¤J¤é´ÁªºÄæ¦ì, «hקï¤U±³o¦æªº 3, ©Î 6 ¼Æ¦r
If Target.Column <> 3 And Target.Column <> 6 Then Calendar1.Visible = fales: Exit Sub
'Calendar1.Top = (Target.Row - 1) * 16.5
Calendar1.Top = ActiveCell.Top '³o¨â¦æ¨M©w¤ë¾ä±±¨î¶µªº¦ì¸m
Calendar1.Left = ActiveCell.Left + 80
Calendar1.Visible = True
End Sub
¿ù»~µe±¦p¤U
ì©lÀÉ®×
Excel_¤ë¾ä½d¨Ò.rar (14.83 KB)
|
|
Just do it.
|
|
|
|
|
- ©«¤l
- 471
- ¥DÃD
- 121
- ºëµØ
- 0
- ¿n¤À
- 579
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN10
- ³nÅ骩¥»
- OFFICE2019
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-4-16
- ³Ì«áµn¿ý
- 2023-1-17
|
¥Î³oÓ§a
§â¸Ì±ªºªí³æ©Mª«¥óÃþ§O¼Ò²Õ©ñ¨ì©p·Qn¥ÎªºÀɮ׸̱
¦A¥Î¥H¤U«ü¥O ¨ú±±¨îÂI¿ïþ¸Ì¸õ¥X¤é¾ä±±¨î¶µ
¿é¥X¦ì¸m=·Æ¹«ÂI¿ï¦ì¸m
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Cells(1).Address = "$B$6" Then ¤é¾ä.Show 'ÂI¿ïB6«h¸õ¥X¤é¾ä
End Sub
Excel ¤é¾ä´¡¥ó.rar (36.58 KB)
|
|
|
|
|
|
|
- ©«¤l
- 455
- ¥DÃD
- 111
- ºëµØ
- 0
- ¿n¤À
- 563
- ÂI¦W
- 232
- §@·~¨t²Î
- Windows 10
- ³nÅ骩¥»
- Office 2019
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-11-7
- ³Ì«áµn¿ý
- 2024-11-23
|
¦^´_ 2# starry1314
Hi starry1314,
·PÁ±zªº¦^À³
¦]¥»¨¬°ªì¾ÇªÌ¡AÁÙ¤£¬O«ÜÀ´VBAªº¬ÛÃö¥Îªk¡A
¸ò±z½Ð±Ð¤@¤U--> "§â¸Ì±ªºªí³æ©Mª«¥óÃþ§O¼Ò²Õ©ñ¨ì©p·Qn¥ÎªºÀɮ׸̱"
³oӰʧ@n«ç»ò°µªü?
·P®¦!
|
|
Just do it.
|
|
|
|
|
- ©«¤l
- 455
- ¥DÃD
- 111
- ºëµØ
- 0
- ¿n¤À
- 563
- ÂI¦W
- 232
- §@·~¨t²Î
- Windows 10
- ³nÅ骩¥»
- Office 2019
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-11-7
- ³Ì«áµn¿ý
- 2024-11-23
|
¦^´_ 2# starry1314
Hi,§Ú¤w¸gª¾¹D¦p¦ó¶×¤J±z©Ò´£¨ÑªºÀÉ®×¼Ò²Õ¤F
½Ð±Ð¤@¤U¡AY§Ú·Q¦bB2~B1000¡A¾ãÓ³£¬O¥i¥H¿ï¾Ü¤ë¾äªº¿ï¶µ¡A§Ú¸Ó¦p¦ó׸ӱzªº»yªk©O?
Thanks!
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Cells(1).Address = "$B$6" Then ¤é¾ä.Show 'ÂI¿ïB6«h¸õ¥X¤é¾ä
End Sub |
|
Just do it.
|
|
|
|
|
- ©«¤l
- 20
- ¥DÃD
- 6
- ºëµØ
- 0
- ¿n¤À
- 76
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- sp1
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2012-2-3
- ³Ì«áµn¿ý
- 2024-9-23
|
If Not Intersect(Target, Range("B2:B1000")) Is Nothing Then
¤é¾ä.Show
End If |
|
|
|
|
|
|
- ©«¤l
- 455
- ¥DÃD
- 111
- ºëµØ
- 0
- ¿n¤À
- 563
- ÂI¦W
- 232
- §@·~¨t²Î
- Windows 10
- ³nÅ骩¥»
- Office 2019
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-11-7
- ³Ì«áµn¿ý
- 2024-11-23
|
¦^´_ 5# hungrn
Test ok , ·PÁ±zªº¦^ÂлP«ü¾É! |
|
Just do it.
|
|
|
|
|