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

[µo°Ý] vba¸Ìªº¼È°±

[µo°Ý] vba¸Ìªº¼È°±

¦U¦ìª©¤Í¤j®a¦n¡A§Ú·Q½Ð±Ð¤@­ÓÃö©óvba¼È°±ªº°ÝÃD¡A
½Ð¨£ªþ¥ó t1.zip t1.zip (249.84 KB)
¦bTXFA³o¤@­¶ªºÀx¦s®æ¤WÂùÀ»·|¸õ¥X¹Ïªí¡A¨â¬í«á¹Ïªí·|³Q§R°£¡C

§Ú·Q§ï¦¨ÂùÀ»¸õ¥X¹Ïªí«á¡A¼È°±¡AÂI¤@¤U¥ªÁä¤~§R±¼¹Ïªí¡A
½Ð°Ý³o­Ó¼È°±»P«ö¥ªÁä¸Ó«ç»ò¼g©O¡H

·PÁÂ~


¥Ø«eµ{¦¡½X¦p¤U
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
     Dim i As Integer
    i = Val(Target.Row)
   
    Range("B" & i - 3 & ":E" & i + 3).Select
    ActiveSheet.Shapes.AddChart.Select
    ActiveChart.ChartType = xlStockOHLC
    ActiveChart.SetSourceData Source:=Worksheets("txpic").Range("B" & i - 3 & ":E" & i + 3)
   
    ActiveChart.Legend.Select
    ActiveChart.ChartArea.Select
    Application.ScreenUpdating = True
   
    Application.Wait Now + TimeValue("00:00:02")
    'Stop
    'Application.Stop
    'pause
   
   
    ActiveChart.Parent.Delete
   
End Sub

        ÀR«ä¦Û¦b : «Ý¤H°h¤@¨B¡A·R¤H¼e¤@¤o¡A´N·|¬¡±o«Ü§Ö¼Ö¡C
ªð¦^¦Cªí ¤W¤@¥DÃD