ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] ¦p¦óÅý¤U©Ô¿ï³æ¿ï¨ú«á¦Û°Ê¸õ¨ìÀx¦s®æ¬Û¹ïÀ³³B?

¦^´_ 10# c_c_lai

ÁÂÁ§A´£¨Ñ¨º»ò¸Ô²Óªº»¡©ú

§ÚªºEXCEL¶}±Ò(¦w¥þ¦P·N¤]¶}±Ò)¤]¨Ì·Óµe­±¨BÆJ¥hÂI¿ïA2¡A¥i¬O¨S¦³¥X²{¤U©Ôªí¡A¬O§_§Ú¯Ê¤Ö¤°»òª«¥ó

{...} ªí¥Ü»Ý­n¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡

TOP

¦^´_ 10# c_c_lai

§ÚªºEXCEL¬O2007
¶}±Ò§AªºÀɮסA¨ä¤u§@ªí¦WºÙ¬O Sheet1¡B Sheet2¡B Sheet3
¦ýVBAµ{¦¡¤¤¥Îªº¤u§@ªí¦WºÙ¬O ¤u§@ªí1¡B¤u§@ªí2
§Ú¸ÕµÛ±N VBA¤¤ªº "¤u§@ªí" §ï¬° "Sheet" ¤]¤£¦æ
¸Ó¦p¦ó¬O¦n  

¨Ò¦p
Sub CellValidation()      '  stillfish00 ´£¨Ñ
    With Sheets("¤u§@ªí2").[A2:A25].Validation
        .Delete
        .Add Type:=xlValidateList, Formula1:="=¤u§@ªí1!$A$3:$A$20"
    End With
End Sub
{...} ªí¥Ü»Ý­n¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡

TOP

¦^´_  c_c_lai

§ÚªºEXCEL¬O2007
¶}±Ò§AªºÀɮסA¨ä¤u§@ªí¦WºÙ¬O Sheet1¡B Sheet2¡B Sheet3
¦ýVBAµ{¦¡¤¤ ...
ML089 µoªí©ó 2013-11-6 10:49

¤§«e§Ú¬O¥t¥~·s¼W¤@ExcelÀÉ®×´ú¸Õ¡A§¹¦¨«á«Kª½±µ±Nµ{¦¡½X¶K¤J¨ì­ì¥»ªº
"¬Û¤ù¿é¥X»ù¥Øªí.xlsm" ¤º¡A§Ñ¤F±N¨ä¹ïÀ³ªºªí³æ¦WºÙ¤@¨Ö­×¥¿¡A¯u¬O¹ï¤£°_¡I
¬Û¤ù¿é¥X»ù¥Øªí.rar (24.83 KB)

TOP

¦^´_ 12# ML089
§A¦A¸Õ¸Õ¬Ý¡A´ú¸Õµ²ªG¦p¦ó¦A¦æ§i¶D§Ú¡C
ÁÂÁ¡I

TOP

¦^´_ 14# c_c_lai

ÁÙ¬O¤£¦æ¡A«öA2¡BA3...³£¨S¦³¤ÏÀ³
¤§«e¼Ó¥DªºÀɮפ]¤£¦æ¡A«á¨Ó§Ú¦Û¦æ³]©w ¸ê®ÆÅçÃÒ(²M³æ) ¡A¤U©Ô¿ï³æ¤~¥X²{

½Ð°Ý ComboBox1 ¬O§_»Ý­n¦Û¦æ¼W³]¡AÁÙ¬Oµ{¦¡¤w¸g¤º©w´N¦³
{...} ªí¥Ü»Ý­n¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡

TOP

¦^´_  c_c_lai

ÁÙ¬O¤£¦æ¡A«öA2¡BA3...³£¨S¦³¤ÏÀ³
¤§«e¼Ó¥DªºÀɮפ]¤£¦æ¡A«á¨Ó§Ú¦Û¦æ³]©w ¸ê®ÆÅçÃÒ(²M³æ ...
ML089 µoªí©ó 2013-11-6 12:47

½Ð°Ý§A¬O¤U¸ü "¬Û¤ù¿é¥X»ù¥Øªí.xlsm" ª½±µ¥Î¥¦¨Ó´ú¸Õ¡AÁÙ¬O
¦Û¤v¥t¥~¶}±Ò¤@·sÀɮסA¦Ó¶È½Æ»sµ{¦¡½X¨Ó¹B§@¡H

TOP

¦^´_ 16# c_c_lai


§Ú¤]¬O­C¡Aª½±µ¶}±Ò¤U¸üªºÀɮסAµM«áÂI¤FA2´N¥X²{¿ù»~°T®§¤F¡A
¤G­ÓÀɮ׳£¤@¼Ë¡C

2013-11-06_131256.jpg (137.78 KB)

2013-11-06_131256.jpg

TOP

¦^´_ 17# owen06
½Ð§Aª½±µ¶}±Ò #1 ªºªþ¥ó¡AµM«á±N¥H¤Uµ{¦¡½X¶K¤J¨ì Sheet2 ªºµ{¦¡½X°Ï¦A¸Õ¸Õ¬Ý  (§¹¥þ½Æ»s¹L¥h)¡A
µ²ªG¦p¦ó½Ð¦^´_§iª¾¡AÁÂÁ¡I (§Ú³oÃäµL½×¬O¥t¦æ·s¼W¡B©ÎªÌ¬O¨Ï¥Î #1 ªºªþ¥ó³£¬OOKªº )
  1. Public ckCurr As Boolean

  2. Private Sub ComboBox1_Change()    '  stillfish00 ´£¨Ñ
  3.     If ckCurr Then Exit Sub
  4.    
  5.     Application.EnableEvents = False
  6.    
  7.     ckCurr = False
  8.     ComboBox1.Visible = False
  9.     Range(ComboBox1.LinkedCell).Offset(, 2).Select
  10.     Application.EnableEvents = True
  11. End Sub

  12. Private Sub CommandButton1_Click()
  13.     If Me.ComboBox1.Visible Then ckCurr = True: Me.ComboBox1.Visible = False
  14.    
  15.     Range("A2:A25,C2:C25").Select
  16.     Selection.ClearContents
  17. End Sub

  18. Private Sub Worksheet_SelectionChange(ByVal Target As Range)
  19.     Dim StrVdFml As String
  20.    
  21.     '  If ckCurr Then Exit Sub
  22.     On Error Resume Next
  23.         StrVdFml = Replace(ActiveCell.Validation.Formula1, "=", "")
  24.         '  ActiveCell.Validation.Formula1 ¡G  "=Sheet1!$A$3:$A$20"
  25.         '  ComboBox1.ListFillRange        ¡G   Sheet1!$A$3:$A$20
  26.         '  Replace(ActiveCell.Validation.Formula1, "=", "") : "Sheet1!$A$3:$A$20"
  27.         '  StrVdFml : "Sheet1!$A$3:$A$20"
  28.         ActiveCell.Validation.InCellDropdown = False
  29.     On Error GoTo 0
  30.     If StrVdFml = "" Then
  31.         If Me.ComboBox1.Visible Then Me.ComboBox1.Visible = False
  32.     Else
  33.         With Me.ComboBox1
  34.             '  ComboBox1.progID   =EMBED("Forms.ComboBox.1","")
  35.             '  ComboBox1¡G        ComboBox
  36.             '  LinkedCell¡G       $A$2
  37.             '  ListFillRange ¡G   Sheet1!$A$3:$A$20
  38.             .Left = ActiveCell.Left
  39.             .Top = ActiveCell.Top
  40.             '  .Width = ActiveCell.Width + 140
  41.             .Width = ActiveCell.Width
  42.             '  .Height = ActiveCell.Height + 10
  43.             .Height = ActiveCell.Height
  44.             '  .Font.Size = 22
  45.             .Font.Size = 12

  46.             .LinkedCell = ActiveCell.Address    '  "$A$2"
  47.             .ListFillRange = StrVdFml           '  "Sheet1!$A$3:$A$20"
  48.             .Visible = 1                        '  Åã¥Ü¤U©Ô²Å¸¹

  49.             .Object.SpecialEffect = 3
  50.             '.Object.Font.Size = ActiveCell.Font.Size
  51.         End With
  52.     End If
  53.   
  54.     ckCurr = False
  55. End Sub

  56. Private Sub Worksheet_Change(ByVal Target As Range)
  57.     '  Target.Font.ColorIndex = 5
  58.    
  59.     If Not Intersect(Target, Range("C2:C25")) Is Nothing Then
  60.         If Target(1, 1) = 0 Then Exit Sub
  61.         ckCurr = True
  62.         '  MsgBox Target.Address
  63.         Target.Offset(1, -2).Select
  64.     End If
  65. End Sub

  66. Sub CellValidation()      '  stillfish00 ´£¨Ñ
  67.     With Sheets("Sheet2").[A2:A25].Validation
  68.         .Delete
  69.         .Add Type:=xlValidateList, Formula1:="=Sheet1!$A$3:$A$20"
  70.     End With
  71. End Sub
½Æ»s¥N½X

TOP

¦^´_ 18# c_c_lai


¶}±Ò #1 ªºªþ¥ó¡AµM«á±Nµ{¦¡½X¶K¤J¨ì Sheet2 ªºµ{¦¡½X°Ï¡AÁÙ¬O¤£¦æ

¦Û¦æ³]©w ¸ê®ÆÅçÃÒ «á¡A¬O¥i¥H°õ¦æ¡A¤U©Ô¿ï³æ - ¿ï§¹¦Û°Ê¸õ¨ì CÄæ¼Æ¶q - ¿é¤J¼Æ¶q¤]¦Û°Ê¸õ¨ì¤U¤@¦C¡C
¥i¬O¤U©Ô¿ï³æ¤S¦n¹³¤£¬O ¸ê®ÆÅçÃÒªº¤U©Ô¿ï³æ¡AÀ³¸Ó¬OComboBox1±o¤U©Ô¿ï³æ

§Ú¦Û¤v¥Î¸ê®ÆÅçÃÒ°t¦XWorksheet_Change¤]¥i¥H¹F¨ì®ÄªG¡A¥u¬O¸ê®ÆÅçÃÒ¿ï³æ¥\¯à¤ñ¸û¶§¬K¡C
Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Column = 1 Then
        Target.Offset(, 2).Select
    ElseIf Target.Column = 3 Then
        Target.Offset(1, -2).Select
    End If
End Sub

¬Û¤ù¿é¥X»ù¥Øªí_ML089.rar (31.27 KB)
{...} ªí¥Ü»Ý­n¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡

TOP

¦^´_ 19# ML089
¦A¸Õ¸Õ¬Ý (¦³¾ã²z¹L)

¬Û¤ù¿é¥X»ù¥Øªí_ML089.rar (24.95 KB)

TOP

        ÀR«ä¦Û¦b : ¦n¨Æ­n´£±o°_¡A¬O«D­n©ñ±o¤U¡A¦¨´N§O¤H§Y¬O¦¨´N¦Û¤v¡C
ªð¦^¦Cªí ¤W¤@¥DÃD