简体   繁体   English

这行代码[VBA]中的“否”是什么意思

[英]What is the meaning of “No” in this line of code [VBA]

I am new to VBA programming and recently I have come accross this line of code at work and I couldn't find any answer for it from my colleagues, as none of them are coders. 我是VBA编程的新手,最近我在工作中遇到了这一行代码,我的同事们找不到任何答案,因为他们都不是编码员。

S2_path = "\\wswvnascti0005\fin_pol_pcRegion\MENA\S2_reports\"
S2_file = "CEEMEA-StandardPLCEEMEA_with_daily-20" & year & month & day & ".csv"
folder_to = "\\wswvnascti0005\fin_pol_pcRegion\MENA\ALL\"
pnl_new = "MENA_Consolidated_PnL_20" & year & "-" & month & "-" & day & ".xlsm"

Application.Workbooks.Open S2_path & S2_file, No

The line of code that I'm talking about is the last line, where you can find the word No . 我正在谈论的代码行是最后一行,您可以在其中找到单词No。 What is the meaning of that word in this case? 在这种情况下,这个词是什么意思?

Thanks for help guys and sorry for my English! 感谢您的帮助,对不起我的英语!

It's (incorrectly) saying not to update links ( UpdateLinks ) - should say False here. 这是(错误地)说不更新链接( UpdateLinks )-在这里应该说False The parameters as delineated by commas (as per below) and because it's after the first comma, it's related to UpdateLinks . 参数用逗号表示(如下所示),并且因为它在第一个逗号之后,所以它与UpdateLinks有关。

Another way that code could have been written would be Application.Workbooks.Open S2_path & S2_file, UpdateLinks:=False 可以编写代码的另一种方式是Application.Workbooks.Open S2_path & S2_file, UpdateLinks:=False

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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