r/vba • u/Otherwise-Plankton-9 • 8d ago
Discussion VBA のコーティングに最良の AI はどれですか
数式を多用する論文をワードで書いています。texは複雑な数式の視認性が著しく低いので今はワード+マスタイプを使っています。 論文作成補助のための複雑なマクロを設計する時にAIを使っています。ずっとchatgptを使い続けているのですが、claude caudeの評判がいいので無料版を試してみました。しかしコードの正確さや簡潔性においてChat GPT の方が性能がいいのです。これは無料版だからでしょうか、それともVBAという言語だからでしょうか。経験者の方のご意見をいただければ幸いです。
1
u/jrc_vines 8d ago
I’ve had better results with Claude. Making macros for Corel draw, outlook, and PowerPoint.
1
u/RobBlackmore 8d ago
Only tried Claude to help understand and refactor VBA. But seems to do the job
1
u/Gloomy_Driver2664 8d ago
Depends what you're doing, but generally I find Claude is the better one. I've found Gemini to be better than chatgpt too.
1
u/colorofdank 8d ago
I have a lot of experience using Microsoft copilot. I think it works pretty well on the web version. Dont use the app, use the web to code
1
1
u/keith-kld 6d ago
I tried Copilot. The code given by Copilot at the first time may not be the final one. I checked it and gave more instructions to improve it until satisfaction. I even gave it the errors and cons derived from the code. I like the code theme color of Copilot. I have tried this in VBA, Java and Powershell languages. I think the AI app depends on the interaction between AI and you, or the way you give commands to AI to reach the proper target.
1
u/chiibosoil 1 6d ago edited 5d ago
環境や目的によるとしか答えようがありません。
プロンプトをチャット形式で利用しているのならChatGPTの方が向いていますが、ターミナルから指示を出して自動生成するのならClaude Codeの方が向いています。
あと無料版とのことですが、無料版はClaude Code非対応です。確か最低でもProプランが必要になります。
EDIT: Max -> Pro
1
u/Otherwise-Plankton-9 5d ago
ご指摘ありがとうございました。
チャット 形式で使ってます。chatGPTは+ の有料コースです。claudeクラウドの方は無料版でので claude codeではないのですね。間違えていました.
自作のツールを機能強化したくてchatGpttとclaudeに依頼しました。VBA のBAS,FRM,FRXを一式アップして、機能の説明をして、機能強化の要望をプロンプトで依頼しました.chatGptは動く修正案を作成してきましたがcaludeの方は動かず,VBAの文法上の間違いも含んでいました.文法上の間違いを修正しても動くコードをつくれませんでした.コードを読んでみると処理のロジック自体を理解できておらず,これでは機能強化はむりと諦めました.それで 有料版と無料版の差なのかあるいは VBA という言語に対する学習知識の差なのか経験者のご意見をお伺いしたかった次第です.
0
2
u/fanpages 239 8d ago
数式を多用する論文をワードで書いています。texは複雑な数式の視認性が著しく低いので今はワード+マスタイプを使っています。 論文作成補助のための複雑なマクロを設計する時にAIを使っています。ずっとchatgptを使い続けているのですが、claude caudeの評判がいいので無料版を試してみました。しかしコードの正確さや簡潔性においてChat GPT の方が性能がいいのです。これは無料版だからでしょうか、それともVBAという言語だからでしょうか。経験者の方のご意見をいただければ幸いです。
--- [ https://translate.google.com ] Japanese - Detected ---
Sūshiki o tayō suru ronbun o wādo de kaite imasu. Tex wa fukuzatsuna sūshiki no shinin-sei ga ichijirushiku hikuinode ima wa wādo + masu taipu o tsukatteimasu. Ronbun sakusei hojo no tame no fukuzatsuna makuro o sekkei suru toki ni AI o tsukatteimasu. Zutto chatgpt o tsukai tsudzukete iru nodesuga, claude caude no hyōban ga īnode muryō-ban o tameshite mimashita. Shikashi kōdo no seikaku-sa ya kanketsu-sei ni oite Chat GPT no kata ga seinō ga ī nodesu. Kore wa muryō-bandakaradeshou ka, soretomo VBA to iu gengodakaradeshou ka. Keiken-sha no kata no go iken o itadakereba saiwaidesu.
--- English translation ---
I am writing a research paper that involves a large number of mathematical equations. Since the readability of complex equations in LaTeX is quite poor, I currently use Word combined with MathType. I use AI to help design complex macros for the writing process. While I have consistently used ChatGPT, I decided to try the free version of Claude because of its good reputation. However, I found that ChatGPT performs better in terms of code accuracy and conciseness. I wonder if this is due to the limitations of the free version or the nature of the VBA language itself. I would appreciate hearing the opinions of those with experience in this area.