Board logo

¼ÐÃD: [µo°Ý] ¦p¦ó¦bªÑ»ù¹Ï¤U¤èÀ³¥Î VBA ¼W¦C¤@©ÔÅQ¡H [¥´¦L¥»­¶]

§@ªÌ: c_c_lai    ®É¶¡: 2012-5-13 18:35     ¼ÐÃD: ¦p¦ó¦bªÑ»ù¹Ï¤U¤èÀ³¥Î VBA ¼W¦C¤@©ÔÅQ¡H

½Ð±Ð½Ñ¦ì¥ý¶i¡A¦p¦ó¯à¦bªÑ»ù¹Ï¤U¤è (¦pªþ¹Ï) À³¥Î VBA »yªk¨Ó¼W¦C¤@©ÔÅQ (ScrollBar)¡H
¡A¥ý«e GBKEE ª©¤j¦³­Ó½d¥»µ¹§Ú¡A¦ý¬O®³¨ÓÀ³¥Î¦b¦¹³B«o¤£¦¨¥\¡A
¥ú¬O  .ScrollBar1.Min = 1  ªº«Å§i´NµL¯e¦Ó²×¡A§ó¦óªp±µ¤U¥h¤F¡A
­n©Ç¥u¯à©Ç¦Û­Ó¨à¥\¤O¤£¦æ¡I  ªþ¤WÀɮסAÁÂÁ½Ѧì¥ý¶i«ü¾É¡I
[attach]10931[/attach]
[attach]10932[/attach]
§@ªÌ: f3202    ®É¶¡: 2012-5-14 08:35

¦^´_ 1# c_c_lai
°Ñ¦Ò±Ð¾Ç

    http://davidpu.pixnet.net/blog/post/25682509-%E8%A3%BD%E4%BD%9C%E5%8F%AF%E6%8D%B2%E5%8B%95%E5%92%8C%E7%B8%AE%E6%94%BE%E7%9A%84-excel-%E8%82%A1%E7%A5%A8%E5%9C%96-(%E4%BA%8C)---
§@ªÌ: c_c_lai    ®É¶¡: 2012-5-14 09:40

¦^´_ 2# f3202
ÁÂÁ±z¡I
¦]¬°§Úªº¨C±i¹Ïªí³£¬O°ÊºA²£¥Íªº¡A©Ò¥H§Ú¤~·Q¦b¨C­Ó¹Ïªí¤U¤è§¡¦U¦Û°ÊºA°t¸m¤@²Õ©ÔÅQ¡A¦Ó«DÀRºA(¹w¥ý´N¤w¸g²£¥Í)ªº¡A
¤£¹L±z´£¦@ªººô¯¸¤º®e«D±`ªº´Î¡AÁÂÁ±zªº¤À¨É¡I
§@ªÌ: alexliou    ®É¶¡: 2012-5-14 14:21

¥»©«³Ì«á¥Ñ alexliou ©ó 2012-5-14 14:31 ½s¿è

¦^´_ 3# c_c_lai
»s§@ Scrolling Chart®É
­«ÂI¬O§âScrollBarªºValue ©M¹Ïªíªº¸ê®Æ¨Ó·½ªº¦ì¸m³s¦b¤@°_

·íScrollBar ªºChange¨Æ¥óµo¥Í®É
¹Ïªí´N¥²¶·±N¸ê®Æ¨Ó·½­«³]¤@¦¸

ªþ¥ó¤¤Àɮצ³¤@­Ó§Q¥Îªøµu§¡½u­È¨Ó¨M©w¶R½æ°T¸¹ªºK½u¹Ï,
¨ä¤¤¦³¨â­Ó­«ÂI:
1. ¦]¬°¸ê®Æ¶q«Ü¦h, ³£©ñ¦b¤@±i¹Ï¸Ì·|Åã±o«Ü¾ÖÀ½, ©Ò¥H¤@±i¹Ï¸Ì­­©w¥u©ñ150®ÚK´Î
    K½u¹Ï¤U³]­p¤F¤@­Ó±²¶b, Åý¨Ï¥ÎªÌ¥i¥H±²°Ê±²¶b¨ÓÀ˵ø¤£¦P®É´Áªº¸ê®Æ
2. ·í¦³¶R½æ°T¸¹¥X²{®É, K´Î¤W·|¥X²{"¶R¶i"©Î"½æ¥X"ªº¼ÐÅÒ
    ¦ý·í±²¶b²¾°Ê®É,³o¨Ç¼ÐÅÒ¤]­n¸òµÛ²¾°Ê
§@ªÌ: alexliou    ®É¶¡: 2012-5-14 15:56

¥t¤@ºØª©¥»
¹Ï°±¯d¦bWorkSheet¤¤
®t§O¦bScroll Event Handler ¤¤¥[¤J¬Y¨ÇÀô¹ÒÅܼƪº³]©w
§@ªÌ: c_c_lai    ®É¶¡: 2012-5-14 16:55

¦^´_ 4# alexliou
Alex ¥S¡A
³\¤[¨SÁpµ¸¤F¡AÁÂÁ±zªº¤À¨É¡A¨ü¯q¨}¦h¡A
¸ÌÀYùئ³¤£¿ùªº³B¸Ì¤èªk¡AÆZ­È±o±´°Qªº¡A
³o¤]¬O§Úªñ¤ë¨Ó¶}©l±µÄ² Excel ¤Î VBA «Ü´ÎªºÁ{§É¹êÅç¡A
¦b¦¹¨¥Á¤F¡I
(½Ð±Ð±z'ªø§¡½u'¬O¦^·¹¦h¤[¡A±z¬O«ç»ò³B¸Ì¼Æ¾Úªº¡H)
§@ªÌ: c_c_lai    ®É¶¡: 2012-5-14 18:18

¦^´_ 5# alexliou
§Ú§â DataLabel ¤p§ï¤F¤@¤U¡A®ÄªGÁÙ¤£¿ù¡A½Ð°Ñ¦Ò¡G
  1.             If .DataLabel.Text = "¦h³æ¥­­Ü" Or .DataLabel.Text = "½æ¥XªÅ³æ" Then
  2.                 .DataLabel.Text = .DataLabel.Text & Chr(10) & Format(Cells(i, 5).Value, "###0")      ' ********* ¤p§ï¤F¤@¤U **********
  3.                 ActiveChart.SeriesCollection(4).Points(i - StartKBarRow + 1).MarkerStyle = xlMarkerStyleStar   
  4.                 ActiveChart.SeriesCollection(4).Points(i - StartKBarRow + 1).MarkerSize = 10
  5.                 .DataLabel.position = XlDataLabelPosition.xlLabelPositionBelow
  6.             ElseIf .DataLabel.Text = "ªÅ³æ¥­­Ü" Or .DataLabel.Text = "¶R¶i¦h³æ" Then
  7.                 .DataLabel.Text = .DataLabel.Text & Chr(10) & Format(Cells(i, 5).Value, "###0")      ' ********* ¤p§ï¤F¤@¤U **********
  8.                 ActiveChart.SeriesCollection(4).Points(i - StartKBarRow + 1).MarkerStyle = xlMarkerStyleTriangle
  9.                 ActiveChart.SeriesCollection(4).Points(i - StartKBarRow + 1).MarkerSize = 8
  10.                 .DataLabel.position = XlDataLabelPosition.xlLabelPositionAbove
  11.             End If
½Æ»s¥N½X

§@ªÌ: alexliou    ®É¶¡: 2012-5-14 20:52

¥»©«³Ì«á¥Ñ alexliou ©ó 2012-5-14 20:59 ½s¿è

¦^´_ 6# c_c_lai
¤W¶Çªºµ{¦¡¬O¾ã­Ó§¡½uµ¦²¤¦^´ú¾¹Projectªº¤@³¡¥÷
¥¦ªº¥\¯à¶È³B²zø»sK½u¹Ï

ªÑ»ùªº°ò¥»¸ê®Æ©ñ¦bAccess ¸ê®Æ®w¸Ì    (¤]¬O¾aVBA±qºô¸ô¤WÂ^¨ú¦Ó¨Ó)
¥i¥H®Ú¾Ú¬Y­ÓUserForm ©Î ¬Y¨ÇCellªº¤º®e¨M©w­nLoad
­þ¤@­Ó°Ó«~  ­þ¤@¬q´Á¶¡ªº¸ê®Æ¶i¨Ó
³o¥i¥H¥Î¤@­ÓSub¨Ó³B²z

ªøµu´Á§¡½u¬O®Ú¾Ú°ò¥»¸ê®Æ¨Ó­pºâ
­n¥Î¦h¤Ö¤Ñªº²¾°Ê¥­§¡ ¤]¥i¥H®Ú¾Ú¬Y­ÓUserForm ©Î ¬Y¨ÇCellªº¤º®e¨Ó¨M©w
³o­Ó¨Ò¤l¥Îªº¬O¥|¤é©M¤­¤Q¤é(ÀH«K³]ªº)
²¾°Ê¥­§¡ªº­pºâ¥i¥H¥Î¥t¤@­ÓSub¨Ó³B²z

¶R½æ°T¸¹®Ú¾Ú²¾°Ê¥­§¡½uªºª¬ªp¨Ó¨M©w
¨Ò¦p·íµu´Á§¡½u¤W¬ïªø´Á§¡½u«h²£¥Í"¶R¶i"°T¸¹
¤Ï¤§«h"½æ¥X"
³o¥i¥H¥Î¥t¤@­ÓSub¨Ó³B²z
....
....
....
§@ªÌ: c_c_lai    ®É¶¡: 2012-5-14 21:39

¦^´_ 8# alexliou
¥H©¹¦b¾³õ®É±`¨Ï¥Î PostgreSQL¥H¤ÎMS SQL¡A»¡¯u®æªº§ÚÁÙ¨S¥Î¹LAcess¡A¦³ªÅ®É§Ú·|¨Ó¸Õ¸Õ¥¦¡A
¥Ø«e§Ú¬O±N¸ê®Æª½±µ¦s©ñ¦bExcelªí³æ¤º°µ´ú¸Õ¡CÂǥѽm²ß¥H¤F¸Ñ VBA ¤Î Excel ªº¸ê®Æ³B²z»PÀ³¥Î¡C
ÁÂÁ±zªºÀ°§U¡A¤µ«á¦p¦³¤£¸Ñ¤§³BÁٻݦA¨Ó¥´ÂZ±z¤F¡I
§@ªÌ: c_c_lai    ®É¶¡: 2012-5-15 07:48

¦^´_ 8# alexliou
½Ð°Ý¥Ñ VBA ²£¥Íªº ScrollBar ªº Event Handler ¦p¦ó©R¦W¡H ¨Ò¦p¡GPrivate Sub ScrollBar1_Change()  ~  End Sub
¦ý¬O¥[¤J ScrollBar1_Change() «á¨Ã¥¼°_¥ô¦ó§@¥Î¡H À³¸Ó­n¨Ï¥Î Private Sub ScrollBar???_Change()¡H
ªþ¤W´ú¸ÕÀɮסAÁÂÁ«ü±Ð¡I
[attach]10952[/attach]
[attach]10953[/attach]
§@ªÌ: GBKEE    ®É¶¡: 2012-5-15 16:54

¥»©«³Ì«á¥Ñ GBKEE ©ó 2012-5-15 16:55 ½s¿è

¦^´_ 10# c_c_lai
³o¸Ì¥i¥H°Ñ¦Ò
§AªþÀɪº¬O ªí³æªºScrollBar
  1. Sub ±²¶b7()    'ªí³æªºScrollBar ¶·«ü©w¥¨¶°
  2.     Dim S As Object
  3.     Set S = ActiveSheet.Shapes(Application.Caller).OLEFormat.Object
  4.     MsgBox S.Name
  5.     MsgBox S.Value
  6.     MsgBox S.Max
  7. End Sub
  8. Sub ±²¶b7A()    'ªí³æªºScrollBar ¶·«ü©w¥¨¶°
  9.     MsgBox ActiveSheet.Shapes(Application.Caller).OLEFormat.Object.Name
  10.     MsgBox ActiveSheet.Shapes(Application.Caller).OLEFormat.Object.Value
  11.     MsgBox ActiveSheet.Shapes(Application.Caller).OLEFormat.Object.Max
  12. End Sub
½Æ»s¥N½X
  1. Private Sub ScrollBar1_Change() '±±¨î¤u¨ã½c ScrollBar1ª«¥óªºµ{§Ç
  2.     MsgBox ScrollBar1.Name
  3.     MsgBox ScrollBar1.Value
  4.     MsgBox ScrollBar1.Max
  5. End Sub
½Æ»s¥N½X
¦p¹Ï


[attach]10958[/attach]
§@ªÌ: alexliou    ®É¶¡: 2012-5-15 19:42

¥»©«³Ì«á¥Ñ alexliou ©ó 2012-5-15 20:38 ½s¿è

¦^´_ 10# c_c_lai
1.¥ÎVBA code ²£¥Íªº ªí³æ±±¨î¶µ ¥¦ªº¦WºÙ¬O¥ÑExcel ¨M©wªº (ex. "¨÷¶b 7")
¬°¤F´x±±³o­Ó±±¨î¶µ, §A³Ì¦n¬OÀ°¥¦­«·s©R¦W
³o¥i§Q¥Î .Name ÄݩʨӹF¦¨
(ex.  .Name = "MyScrollBar1")


2. ³]©w¦¹¤@±±¨î¶µªºEvent Handler
³o¥i§Q¥Î .OnAction ÄݩʨӹF¦¨
(ex.  .OnAction =  "MySrollBar1_Change"

3. ¼¶¼g MyScrollBar1_Change µ{§Çªºµ{¦¡½X

4. ²Ä¤@¨B¥i¬Ù²¤, ¦ý°µ¤F·|¨Ï¤@­P©Ê(±±¨î¶µªº¦WºÙ©M¥¦ªºEvent Handler ¦WºÙ)´£°ª
§A¥i§â .Name = "MyScrollBar1" ¨º¦æ Mark±¼
µ{¦¡¥i¥H¹B§@
¥u¤£¹L "±²¶b x"ªº¨Æ¥ó³B²z¾¹¬O MyScrollBar1_Change
¨âªÌ¦WºÙ¤£¤@­P

5. ScrollBar ¦³¨âºØ  ¥i¥H¬Oªí³æ±±¨î¶µ©Î¬OActive X ±±¨î¶µ
¼Ó¤WGBKEE¤j¤j¦³Demo
¨âªÌ¥ÎVBA Code«Ø¥ß»P³B²z¤èªk¤£¦P
§A¥Îªº¬Oªí³æ±±¨î¶µ
§@ªÌ: c_c_lai    ®É¶¡: 2012-5-15 22:04

¦^´_ 11# GBKEE
¦^´_ 12# alexliou
ÁÂÁ¨â¦ìªºÀ°¦£¡A³o¨â¤Ñ§Ú¤W¤F°ê¥~ºô¯¸¦¬´M¸ê®Æ¡A§ä¨ì¤F¤@½gÁÙ¤£¿ù¡A¦p¤U¡G
  1. Sheet1.ScrollBars.Add(624763.5, 4271616, 5095730.25, 189166.5).Select

  2. With Selection
  3.     .Value = 60
  4.     .Min = SMin
  5.     .Max = SMax
  6.     .SmallChange = 1
  7.     .LargeChange = 1
  8.     .LinkedCell = "Sheet1!$O$5"
  9.     .Display3DShading = True
  10.      
  11.     With .ShapeRange
  12.         .Left = 0
  13.         .Width = 680.32
  14.         .Top = 0
  15.         .Height = 15
  16.     End With
  17.      
  18.     .OnAction = "ScrollBarChange"
  19. End With
½Æ»s¥N½X
¦ý¬O§Ú«oÆp¶i¤F¦º­J¦P  .OnAction = "ScrollBarChange"  ¦Ñ¬O§i¶D§ÚµLªk¨Ï¥Î¦¹¥¨¶°¡A
¦Ê«ä¤£¸Ñ¤§¤U¤~¨Ó¨D´©¡Aµ²ªG¬O Alex¥S¥s§Ú¨Ï¥Î .OnAction = "¤u§@ªí1.ScrollBarChange"  ¡A
«Kªï¤b¦Ó¸Ñ¤F¡C ´N®t§O¦b¥²¶·¥[¤W "¤u§@ªí1."¦r¼Ë¤~¯à¥¿±`¹B§@¡CÁÂÁ±z­Ì¡I
¥t¥~¦A½Ð±Ð¡A¦b ThisWorkbook ¤WÀY¤w¸g«Å§i¤F Public «¬ºA¡A²z½×¤W¥¦À³ÄÝ©ó Global¡A
¬°¦ó¦b"¤u§@ªí1"¤º«oµLªk¨ú±o¸Óµ¥ÅܼƤº®e­È©O¡H
§@ªÌ: alexliou    ®É¶¡: 2012-5-16 02:17

¥»©«³Ì«á¥Ñ alexliou ©ó 2012-5-16 03:09 ½s¿è

¦^´_ 13# c_c_lai
¨º¨ÇªþÄݦbª«¥ó(¦pThisWorkBook, ¤u§@ªí1, .......)¤UªºÅܼƩε{§Ç
§Y¨Ï«Å§i¬°Public , ­n¥h¦s¨ú©Î©I¥s,  »Ý³z¹Lª«¥óªº¶¥¼h  
¦pThisworkbook.VariableA, ¤u§@ªí1.ScrollBarChange,.....

¦ý¦b¼Ò²Õ(Module)¤¤«Å§iªºÅܼƩε{§Ç
¦p«Å§i¬°Public, §Y¨Ï¬O¦bModule¥~¨ú¥Î©Î©I¥s
¤]¤£¥Î¥[¤W¼Ò²Õªº¦WºÙ

¹³§A«e­zªº°ÝÃD
¦pªG§âScrollBarChange µ{§Ç ©ñ¦b¼Ò²Õªí1¤¤
¨Ã§â¥¦«Å§i¬°Public (³o¸Ì¤£«Å§i¤]¦æ  ¦¹±¡§Î¬O¯S¨Ò)
¨º§A¨Ï¥Î   .OnAction = "ScrollBarChange" ¤]·|work

¤u§@ªí¤Wªº±±¨î¶µªºEvent Handler ³q±`·|©ñ¦bªþÄÝ©ó¤u§@ªíªºµ{§Ç¸Ì
¦]¬°¦P¤@Ãþ§Oªº±±¨î¶µ¥i¯à·|¦b¤£¦Pªº¤u§@ªí¤¤¥X²{
¦pªG¯à½T«O¨C­Ó±±¨î¶µºÙ³£¤£¦P¦W
Event Handlers¥þ³£©ñ¦b¼Ò²Õªí¸Ì¥ç¥i
§@ªÌ: c_c_lai    ®É¶¡: 2012-5-16 07:34

¦^´_ 14# alexliou
§Ú·|¦A¹ê¦aºt½m¦h¦¸¥HÁA¸Ñ¥¦­Ì佊¦¹¶¡¤¬°ÊÃöÁpªº¡A ÁÂÁ±z¡I
¨Ì±z©Ò¨¥¡A±z©Ò¦³¸ê®Æ³£ª½±µ¥ÑDDE¶×¤J¨ìAcess¡A¨º½u¤W±z¥u¬Ý¨é°Óªº¹Ïªí¡A
Excel ¤Wªº²Î­p¹Ïªí¥u¬O¨Ó·í§@¾ú¥v¸ê®Æ°Ñ¦Ò¨Ì¾Ú¤F¡A ©Î¬O¨âªÌ¬ÒÀx¦s¡A¦P¨B°Ñ¦Ò¡H
§@ªÌ: alexliou    ®É¶¡: 2012-5-16 10:07

¦^´_ 15# c_c_lai
§ÚªºAccess ¸ê®Æ®w¤¤©Ò¦sªº³£¬O¾ú¥v¸ê®Æ
¸ê®Æ·½¨Ã«D¨é°ÓªºDDE

¦ý¦b»Ý­n§Y®É¥æ©ö¸ê®Æªºª¬ªp¤U
¨é°ÓªºDDE¸ê®Æ·½«h¬O­Ó¤£¿ùªº¿ï¾Ü
¦Ü¤Ö¸ò¨ä¥L¤@¯ë§K¶Oªº¸ê®Æ·½(¦p¥æ©ö©Òªººô­¶¡^
¥¦ªºÃ­©w©Ê©M§Y®É©Ê¡]§ó·sÀW²v¡^³£¸û¨Î
§@ªÌ: c_c_lai    ®É¶¡: 2012-5-20 13:30

¥»©«³Ì«á¥Ñ c_c_lai ©ó 2012-5-21 10:15 ½s¿è

¦^´_ 16# alexliou
¥Ø«e§Úªº ScrollBar ¬O¥ÑVBA°ÊºA²£¥Íªº¡A¥ç§Y·í¶i¤J(±Ò°Ê) Excelªí³æ¡A¸Ó¨t²Î§Y¦Û°Ê²£¥Í¤@ScrollBar¡A
Sheets("²Î­p¹Ïªí").ScrollBars.Add(Cells(20, 1).Left, Cells(20, 1).Top, 879, Rows(1).Height).Select
·íÂ÷¶}Excel®É¡A¤S¦Û°Ê±N¥¦§R°£±¼¡C
§Úªº´£°Ý¬O¡G
§Ú·Q¯à±N¸Ó°ÊºA²£¥ÍªºScrollBar¥[¤W­I´º©ÎªÌ¬O«e´ºÃC¦â¡A¦p¦¹¤ñ¸ûÅãµÛ¡A§_ªÌ¨Ï¥ÎªÌ·|¬Ý¤£²MScrollBar¦b­þ¸Ì¡A
¦]¬°VBA²£¥ÍªºScrollBarªºÃC¦â¬ODefault­È¡A¤£ª¾¹D¥i¤£¥i¥H³o»ò°µ¡H   ¤S¡A               
.InvertIfNegative = True
.InvertColor = RGB(255, 124, 128)                     
¥u¯àÀ³¥Î¦b¬Wª¬¹Ï¡A§Ú¦b·Q¦pªG¬O xlLine «¬ºA®É¡A·íªí¦C¼Æ­È¬°­t­È®É¡A¦³§_±N¨äÅã¥Ü¤§ÃC¦â§óÅܦ¨¾ï¬õ¦â¡A
¥¿­È®É«h¿ï¾Ü¨ä¥¦ÃC¦â¡A¤£ª¾¯à§_¬ð¯}¡H
ÁÂÁ«ü¾É¡I
[attach]11076[/attach]
§@ªÌ: alexliou    ®É¶¡: 2012-5-22 19:34

¥»©«³Ì«á¥Ñ alexliou ©ó 2012-5-22 19:39 ½s¿è

¦^´_ 17# c_c_lai
¥ý¦^µª§A¦³Ãö©óScrollBar ÃC¦âªº°ÝÃD

1. «e­±»¡¹L  ¤u§@ªí¥i¨Ï¥Îªº±±¨î¶µ¥i¤À¨âºØ:
ªí³æ±±¨î¶µ©MActiveX±±¨î¶µ
¦b¤£¨Ï¥ÎVBA¨Ó¦Û°Ê«Ø¥ßScrollBar±±¨î¶µªºª¬ªp¤U
¤]´N¬O¦b¤u§@ªíÀô¹Ò¤¤  §Ú­Ì¿ï¾Ü[¶}µo¤H­û] > [´¡¤J]®É
´N¥i¥Hµo²{ EXCEL´£¨Ñ¨âºØ¿ï¾Ü : ªí³æ±±¨î¶µ©MActiveX±±¨î¶µ
¦Ó¥Bªí³æ±±¨î¶µªºÄݩʸû¤Ö  
ActiveX±±¨î¶µªºÄÝ©Ê¿ï¾Ü¸û¦h (·íMouse ¦bActiveX±±¨î¶µ¤W®É«ö¥kÁä, §A·|µo²{¦h¤F¤@­Ó[¤º®e]¼ÐÅÒ)
³o¨âºØ±±¨î¶µ¦b¥ÎVBA «Ø¥ß®É¤Î¾Þ§@®É
¨Ï¥ÎªºCode¤]¤£¤@¼Ë
ªþ¥ó¤¤¥ÎVBA code «Ø¥ß¤F¨âºØ¤£¦PªºScrollBar±±¨î¶µ ·q½Ð°Ñ¦Ò

[attach]11104[/attach]
2. ªí³æ±±¨î¶µªºScrollBar ¨ÃµLBackColor ©M ForeColorµ¥ÄÝ©Ê
©Ò¥HµLªk§ïÅÜ¥¦ªºÃC¦â
¦pªG§A­nÅýScrollBar ¦³ÃC¦â
´N¥u¯à¨Ï¥ÎActiveX±±¨î¶µScrollBar¤F
¥¦ªºBackColorÄÝ©Ê¥i¥H½Õ¾ãBarªºÃC¦â
¥¦ªºForeClorÄÝ©Ê¥i¥H½Õ¾ãBar¨âºÝ½bÀYªºÃC¦â

3. ·í§A¥ÎVBA Code¦Û°Ê«Ø¥ßActiveX±±¨î¶µ®É
·|¹J¨ì¤@­Ó³Â·Ð   ¬O¥¦¤£¤ä´©¤¤Â_¼Ò¦¡
·|Åý§A°»¿ù«Ü¤£¤è«K
(¦ý§ÚÁÙ¬O¤ñ¸û³ßÅw¥ÎActiveX±±¨î¶µ)

4. ActiveX±±¨î¶µªº¦WºÙÁÙ¦³¤@¨ÇTrickyªº¦a¤è
(§A¥i¥H¦bVBA ªº IDE¤U §Q¥ÎHelp¬dActiveX±±¨î¶µ)
©Ò¥HºÉ¶q¦b³]­p¶¥¬q®É«Ø¸m
¦Ó¤£­n¦bµ{¦¡°õ¦æ¶¥¬q§Q¥ÎVBA Code«Ø¸m¥¦
§@ªÌ: alexliou    ®É¶¡: 2012-5-22 19:47

¥»©«³Ì«á¥Ñ alexliou ©ó 2012-5-22 21:34 ½s¿è

¦^´_ 17# c_c_lai

§é½u¹Ï¨Ã¨Sª½±µªº¿ìªk¨Ó³]©w¤£¦PªºÃC¦â
¤]´N¬O»¡  InvertIfNegative »P§é½u¹Ï¦X¥Î®É¨Ã¤£·|µo´§§@¥Î
(½u¬q¬O³s±µ¨âÂI, InvertIfNegtative ¬O°w¹ï"ÂI")

­Y­n³B²z§é½u¹Ï¦b¤£¦Pªº½d³ò(¥i¥H¬OX¶b, ¤]¥i¥H¬O¤£¦PªºY­È)Åã¥Ü¤£¦PªºÃC¦â
¤@¯ë¸Ñªk¬O§â¤@­Ó¸ê®Æ¼Æ¦C®Ú¾Ú½d³ò©î¦¨¤£¦Pªº¼Æ¦C
¨C­Ó§Ç¦C½á¤©¤£¦PªºÃC¦â

PS. ¥H¤W»¡±o«Ü²³æ ¦ýImplement°_¨Ó·|¦³·sªº°ÝÃDµo¥Í
°²³]²Ä¤@ÂIªºY­È¬O 10, ²Ä¤GÂIªºY­È¬O-5
§A·Q­n¦b0¥H¤Wªº½u¬q©M0¥H¤Uªº½u¬q§e²{¤£¦PªºÃC¦â
³o¼Ë´N±o¤H¤u´¡¤J¤@­ÓÂI0 (¤À¬ÉÂI¤S·|§Î¦¨¤@­Ó¸ê®Æ¼Æ¦C)
§A¥i¥H´Â³o­Ó¤è¦V¥h«ä¦Ò
³o¬O¤@­Ó¤£ºâ¤pªº¤uµ{
§@ªÌ: c_c_lai    ®É¶¡: 2012-5-22 23:01

¦^´_ 18# alexliou
Alex¥S¡A
ÁÂÁ±z¡A§Ú¸ÕµÛ¦bµ{¦¡°õ¦æ¶¥¬q§Q¥ÎVBA Code«Ø¸m¥¦¡A¥¦¤£¶È¥Rº¡µÛ Tricky, ¦Ó¥BÁÙ Difficult to manage,
©Ò¥H§ÚÁÙ¬O°µ­Ó¨ÄÄ_Ä_¨Ï¥Î­ì¥»ªº ScrollBar ¤ñ¸û¿Ë©M©Ê¤]¤£·|§@©Ç¡AÁöµM¨S¦³ BackColor & ForeColor¡C
Anyway ÁÙ¬O­n¦V±z»¡ÁnÁÂÁÂÅo¡I
§@ªÌ: clietj37    ®É¶¡: 2014-4-30 11:20

c_c_lai¤j
·Q½Ð°Ý±z³o®M¤ÀªR¨t²Î¥i§_¤À¨É,
§@¬°¤p§Ì¨t²Î«Ø¸mªº°Ñ¦Ò¥Î©O
[email protected]




Åwªï¥úÁ{ ³Â»¶®a±Ú°Q½×ª©ª© (http://forum.twbts.com/)