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

¨Ï¥Î chatGPT ¾Ç²ß¼gµ{¦¡

¨Ï¥Î chatGPT ¾Ç²ß¼gµ{¦¡

chatGPT ¤H¤u´¼¼z¥i¥HÀ°§A½m²ßVBAµ{¦¡
´X¬íÄÁ¼g¥Xµ{¦¡¯uªº¥i¥Î¡A§Ú¥u¥[¤F On Error Resume Next ­×¥¿¿ù»~


https://openai.com/blog/chatgpt

chatGPT¸ß°Ý¦p¤U¡G
¦bEXCEL¸Ì­±¥ÎVBAµ{¦¡Ã¸¥X°ÊºA¶ê§Î®ÉÄÁ

chatGPT¦^ÂЦp¤U¡G
¥H¤U¬O¤@­Ó²³æªºVBAµ{¦¡¡A¥i¥H¦bExcel¤¤Ã¸»s¤@­Ó°ÊºAªº¶ê§Î®ÉÄÁ¡G

Sub DrawClock()
    Dim i As Integer
    Dim j As Integer
    Dim r As Integer
    Dim pi As Double
    Dim ang As Double
    Dim x As Double
    Dim y As Double
   
    '³]©w¶ê¤ß®y¼Ð¤Î¥b®|
    r = 100
    x = 150
    y = 150
   
    '¨ú±o·í«e®É¶¡
    h = Hour(Now)
    m = Minute(Now)
    s = Second(Now)
   
    '²M°£Â®ÉÄÁ
    On Error Resume Next '¨¾¤î²Ä¤@¦¸¨S¦³¸ê®Æ¥i§R·|¿ù»~¤¤Â_
    ActiveSheet.Shapes.Range(Array("Clock")).Delete
   
    'ø»s®ÉÄÁ¶ê§Î
    Set myshape = ActiveSheet.Shapes.AddShape(msoShapeOval, x - r, y - r, 2 * r, 2 * r)
    myshape.Name = "Clock"
    myshape.Line.ForeColor.RGB = RGB(0, 0, 0)
   
    'ø»s®ÉÄÁ¨è«×
    pi = 3.14159265359
    For i = 1 To 12
        ang = pi / 6 * (i - 3)
        x1 = x + r * Cos(ang)
        y1 = y + r * Sin(ang)
        x2 = x + (r - 10) * Cos(ang)
        y2 = y + (r - 10) * Sin(ang)
        Set myshape = ActiveSheet.Shapes.AddLine(x1, y1, x2, y2)
        myshape.Line.Weight = 2
        myshape.Line.ForeColor.RGB = RGB(0, 0, 0)
    Next i
   
    'ø»s®É°w
    ang = pi / 6 * (h - 3) + pi / 360 * m + pi / 21600 * s
    x1 = x
    y1 = y
    x2 = x + (r - 50) * Cos(ang)
    y2 = y + (r - 50) * Sin(ang)
    Set myshape = ActiveSheet.Shapes.AddLine(x1, y1, x2, y2)
    myshape.Line.Weight = 4
    myshape.Line.ForeColor.RGB = RGB(255, 0, 0)
   
    'ø»s¤À°w
    ang = pi / 30 * (m - 15) + pi / 1800 * s
    x1 = x
    y1 = y
    x2 = x + (r - 30) * Cos(ang)
    y2 = y + (r - 30) * Sin(ang)
    Set myshape = ActiveSheet.Shapes.AddLine(x1, y1, x2, y2)
    myshape.Line.Weight = 3
    myshape.Line.ForeColor.RGB = RGB(0, 255, 0)
   
    'ø»s¬í°w
    ang = pi / 30 * (s - 15)
    x1 = x
    y1 = y
    x2 = x + (r - 20) * Cos(ang)
    y2 = y + (r - 20) * Sin(ang)
    Set myshape = ActiveSheet.Shapes.AddLine(x1, y1, x2, y2)
    myshape.Line.Weight = 1.5
    myshape.Line.ForeColor.RGB = RGB(0, 0, 255)

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

¹ïªì¾ÇªÌ¦Ó¨¥, GPT¼g¥X¨Ó¤F¤]¬O¤@Áy¯íµM,
EXCEL¦]¸ê®Æ©Îªí®æµ²ºc¤£¦P, ¶·¦]¦a¨î©y°µ¤£¦Pªº§PÂ_~~

¹ï¦³°ò¦ªÌ¨¥, °£«D¹J¨ìÃø¸Ñªº¹BºâÅÞ¿è, ¤@¯ëªº¸ê®Æ¾ã²z²Î­p, ÁÙ¬O¥i¥H³Ó¥ô!

VBA¤]¬O¦³"¼W/§R/§ï"ªº»Ý¨D, ¦Û¤v¼gªºª¾¹DÃöÁä©Ò¦b, §ï°_¨Ó¸û´N¤â,
¤×¨ä¦Uµ{§Ç¤§¶¡¦³¤¬¬Û¦êÁp®É, GPTÀ³µLªk´N¹ê»ÚÀ°¤W¦£!!!

µ{¦¡°£¤F¸`¬Ù¤H¤u¥~, ²£¥Í¥¿½Tµ²ªG¬O­«¤¤¤§­«,
©Ò¥H, ÁÙ¬O¦Ñ¹ê±q°ò¦¾Ç°_§a!!!

°£¤FGOOGLEÃþ¦ü®×¨Ò°Ñ¦Ò¥~,
VBE¤º«Ø»¡©úÀɤ]¬O«Ü¦n¥Îªº¾Ç²ß§÷®Æ(§Úªì¾Ç®É, ´N«Ü¦h®É­Ô¥Î³o­Ó)
¦b"ÂsÄýª«¥ó"¤¶­±¿é¤JÃöÁä¦r, ´N¥i¥H§ä¨ì«Ü¦h¬ÛÃöªº¥Îªk¤Î½d¨Ò,
·íµM, ­Y·Q¾Ç¨ì§ó°ª§¢ªº, ¨º§ä±M·~¦Ñ®v¸û¹ê¦b~~

¥H¤@¯ë¨Ï¥ÎªÌ¦Ó¨¥, ¾Ç·|°}¦C¤Î¦r¨å, À³¥i³B²z60%¥H¤Wªº¸ê®Æ¤F~~

TOP

chatGPT AI ¤£·|µ¹§A§¹¬üµ{¦¡¡A
¦ý¥i¥Hµ¹§A¤@­Óºc¬[©Î½d¨Ò¡AÁY´î¼gµ{¦¡ªº®É¶¡¡C
chatGPT AI ¤£¥Î5¤ÀÄÁ´N¥i¥Hµ¹§A¤@¬qµ{¦¡
¦Û¤vÁÙ­nªá1~2¤p®ÉDEBUG¤@¨Ç°ÝÃD
­n­×¨ì¦X·N¤S­nªá1~2¤Ñ®É¶¡¡C

¦ýµ´¹ï¹ïªì¾ÇVBAªÌ¬O¤@¦ì¦n¦Ñ®v
¬d¸ß«D±`«K§Q¡C
{...} ªí¥Ü»Ý­n¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡

TOP

©³¤U¬O§Ú´ú¸ÕChatGpt ªº°ÝÃD¡G

½Ð²£¥ÍµØ¤ó»PÄá¤ó¤¬´«ªºVBAµ{¦¡½X

µ²ªG²£¥Í¨â­Ó¦Û­q¨ç¼Æµ{¦¡½X¦p¤U¡G

'±NµØ¤óÂà´«¬°Äá¤ó
Function FahrenheitToCelsius(fahrenheit As Double) As Double
    Celsius = (fahrenheit - 32) * 5 / 9
    FahrenheitToCelsius = Celsius
End Function

'±NÄá¤óÂà´«¬°µØ¤ó
Function CelsiusToFahrenheit(celsius As Double) As Double
    fahrenheit = celsius * 9 / 5 + 32
    CelsiusToFahrenheit = fahrenheit
End Function


¥¦¥t´£¨Ñ©³¤U¤@­Ó¥¨¶°½d¨Ò¡G

Sub Example()
    Dim celsius As Double
    Dim fahrenheit As Double
   
    celsius = 25 '³]¸mÄá¤ó·Å«×¬°25«×'
    fahrenheit = CelsiusToFahrenheit(celsius) 'Âà´«Äá¤ó·Å«×¬°µØ¤ó·Å«×'
   
    MsgBox "Äá¤ó " & celsius & " «×µ¥©óµØ¤ó " & fahrenheit & " «×¡C"
End Sub

TOP

¦^´_  rcyw
§c¡A§Ú¦b¤j陆³£ª`册¤F¡A¤£过§Ú问¥¦ªº问题¡A¥¦ªð¦^ªº¥N& ...
Joforn µoªí©ó 2023-3-13 23:55


½T¹ê¤Ó¤£¾aÃФF

TOP

¸ò¥Lª±¤F¤@­Ó¤ë
µo²{³o³Ã¥ë¼gµ{¦¡«D±`¤£¾aÃÐ
¿ù»~¦Ê¥X
¦³¨Ç¿ù»~¨ì©³¦p¦ó§ï¥¿ , ¥¦¦Û¤v¤]¤£ª¾¹D
§ÚÁ|­Ó¨Ò  
¹ê»Ú¤W 1+1 ³oºØ°ÝÃD¤Ó²³æ ,  ChatGpt  ¤£·|¥Ç¿ùªº
¦ý¬°¤FÅý¤j®a§ó¯à»´©ö²z¸Ñ¥¦ªº·å²«¦b­þ , §ÚÁÙ¬O¥Î¤F 1+1 ¨ÓÁ|¨Ò  

ChatGpt :     1 + 2 = 4
§Ú:   §A½T©w   1 + 2 ¤£¬O = 3 ¶Ü
ChatGpt :     «Ü©êºp §Ú¥ý«e¦^µª¦³»~ ( ©Î»¡ ¥¦¦Û¤v¤£¤p¤ß  ) ,  1 + 2 = 3 ½T¹ê¤~¬O¥¿½Tªº

­«½Æ°Ý¥¦
§Ú:   §A½T©w   1 + 2 ¤£¬O = 4 ¶Ü
ChatGpt :     «Ü©êºp §Ú¥ý«e¦^µª¦³»~  ,  1 + 2 = 4 ½T¹ê¤~¬O¥¿½Tªº

­«½Æ°Ý¥¦
§Ú:   §A½T©w   1 + 2 ¤£¬O = 3 ¶Ü
ChatGpt :     «Ü©êºp §Ú¥ý«e¦^µª¦³»~  ,  1 + 2 = 3 ½T¹ê¤~¬O¥¿½Tªº


±q¤W­±¥i¥H¬Ý¥X¤°?   ¬Ý¥X ChatGpt ¦Û¤v®Ú¥»¤]¤£ª¾¹D¥¿½Tµª®×

TOP

chatGPT ¤H¤u´¼¼z¥i¥HÀ°§A½m²ßVBAµ{¦¡
´X¬íÄÁ¼g¥Xµ{¦¡¯uªº¥i¥Î¡A§Ú¥u¥[¤F On Error Resume Next ­×¥¿¿ù»~  ...
ML089 µoªí©ó 2023-2-28 09:56


³o¸Ì¦³§OªºAI¾÷¾¹¤H¥~±¾¡G 20230223-0322 ChatGPT ¤Î¨ä¥LAI ¨Ï¥Î¤è¦¡ v.01.rar (880.12 KB)

TOP

¦^´_ 7# Joforn

§AÀ³¸Ó°Ýªº°ÝÃD¤ÓÃø¤F©Î¤Ó½ÆÂø¤F¡A¦Ò­Ë¤FchatGPT
¾A¥Î¤@¯ëªì¾Ç°ÝÃD¤@¨Ç«ü¥O¡B¤p½d¨Ò°Ú¡A¯uªºÀ°§Uº¡¤jªº¡C
{...} ªí¥Ü»Ý­n¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡

TOP

¦^´_ 5# checkout88

¦^ÂФ¤¦³¨Çµ{§Ç©Î¤@¨Ç°Ñ¼ÆÁ`¬O·|¦³¤@¨ÇµLªk°õ¦æ¡A
¦³¨Ç¬OEXCELª©¥»ªº°ÝÃD¡A¦³¨Ç¬OEXCEL VBA »P ¨ä¥LVBA¤]¦³¨Ç«ü¥O¤£¬Û®e
¦ý§@¬°»²§U¬d¸ß¤u¨ã¡A¯uªº¤ñGOOGLE¦n¥Î¤Ó¦h¤F¡C
{...} ªí¥Ü»Ý­n¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡

TOP

¦^´_ 3# rcyw
§c¡A§Ú¦b¤j陆³£ª`册¤F¡A¤£过§Ú问¥¦ªº问题¡A¥¦ªð¦^ªº¥N码¤L¥G没¦³¤@个¯à¥Îªº¡C
¥@¬É¨º»ò¤j¡A¥i§Ú·Q¥h­þ¡H

TOP

        ÀR«ä¦Û¦b : ±o²z­nÄǤH¡A²zª½­n®ð©M¡C
ªð¦^¦Cªí ¤W¤@¥DÃD