简体   繁体   中英

Sub function Excel VBA

Why would this be a syntax error? it is asking for an = sign

cyberlinkcompute("A1","B2")


private sub cyberlinkcompute ( a as string, b as string)

end sub

isnt a sub function something that does not need an =? thanks in advance

删除括号或在过程名称前添加“呼叫”一词

Its the function-like parentheses it dislikes so either;

cyberlinkcompute "A1","B2"

or less advisably:

call cyberlinkcompute("A1","B2")

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM