teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

1

typo修正

2015/04/19 07:27

投稿

htsign
htsign

スコア870

answer CHANGED
@@ -19,7 +19,7 @@
19
19
  とならなければならないはずです。
20
20
  この文を1行で書いてみると分かるかと思います。
21
21
  ```lang-vbscript
22
- Set shape = ActiveSheet.Shapes.AddPicture(Filename:=Environ("TEMP") & "\vbatemp" LinkToFile:=False, SaveWithDocument:=True, Left:=ActiveCell.Left + ActiveCell.With, Top:=ActiveCell.Top, Width:=0, Height:=0)
22
+ Set shape = ActiveSheet.Shapes.AddPicture(Filename:=Environ("TEMP") & "\vbatemp" LinkToFile:=False, SaveWithDocument:=True, Left:=ActiveCell.Left + ActiveCell.Width, Top:=ActiveCell.Top, Width:=0, Height:=0)
23
23
  ```
24
24
  と書くことと等価です。Filenameのところが如何に異質かハッキリするでしょう。
25
25
  「,」は引数はここからここまでです、とパーサ(プログラムの構文を解析する仕組み)に伝える役割を持ちます。