重新使用Excel VBA而不导入它(Reuse Excel VBA without importing it)
我通过重新编码我的动作创建了一个新的宏。 它用于从excel文件中删除列。 如果我必须在我从网上下载的excel文件上运行这个宏,我必须在visual basic中导入宏然后再运行它。
我可以以某种方式使这个宏可用于excel所以我可以运行它从我从网站下载的所有excel文件,而不首先在Visual Basic中导入宏?
I created a new macro by recoding my actions. It is used to delete columns from an excel file. If I have to run this macro on excel file that I download from the web, I have to import the macro in visual basic and then run it.
Can I somehow make this macro available to excel so I can run it to all the excel files that I download from a site, without importing the macro in visual basic first?
原文:https://stackoverflow.com/questions/4810092
最满意答案
在npm安装package-lock.json后不存在。
这是因为您使用的是
npm v3.10.8
而package-lock.json
是在5.0.0
版本中引入的。功能摘要 - 安装程序更改
*一个新的,标准化的锁文件功能,用于跨包管理器兼容性(package-lock.json),以及用于shrinkwrap的新格式和语义。 (#16441)来源 : npm 5.0.0的功能摘要
您需要将npm更新为
5.0.0
以获取package-lock.json
。 为了更新npmnpm update [-g] [...]
在你的情况下,它会
npm update -g npm
来源 : 更新软件包
after npm install package-lock.json not exists.
This is because you are using
npm v3.10.8
andpackage-lock.json
was introduced in version5.0.0
.Feature Summary - Installer changes
* A new, standardised lockfile feature meant for cross-package-manager compatibility (package-lock.json), and a new format and semantics for shrinkwrap. (#16441)Source: Feature Summary of npm of 5.0.0
You need to update the npm to
5.0.0
to getpackage-lock.json
. For updating the npmnpm update [-g] [...]
In your case, it will be
npm update -g npm
Source : Update a package
相关问答
更多-
你可以运行yarn install 。 在通过命令行界面对依赖关系或操作进行的任何更改时,锁文件将全部更新。 Run yarn install, or just yarn. The lock file is updated in its entirety on any change to dependencies, i.e. when you run a yarn command. From the Yarn docs: Your yarn.lock file is auto-generated and s ...
-
它存储精确的版本化依赖关系树,而不是使用像package.json本身(例如1.0。*)这样的加星标版本。 这意味着您可以保证其他开发人员或产品版本的依赖性等。它还具有锁定树的机制,但一般来说,如果package.json更改,则会重新生成树。 从npm github页面 : 对于npm修改node_modules树或package.json的任何操作,都会自动生成package-lock.json。 它描述了生成的确切树,以便随后的安装能够生成相同的树,而不管中间的依赖性更新。 此文件旨在提供到源存储库, ...
-
我提交了由npm 5创建的package-lock.json文件吗?(Do I commit the package-lock.json file created by npm 5?)[2022-05-06]
是的, package-lock.json旨在检查源代码控制。 如果您正在使用npm 5( npm install -g npm@latest ),您可能会在命令行中看到: created a lockfile as package-lock.json. You should commit this file. created a lockfile as package-lock.json. You should commit this file. 根据npm help package-lock.json ... -
你需要: 从经典主题github存储库下载package.json : https://github.com/PrestaShop/PrestaShop/tree/1.7.1.x/themes/classic/_dev 将其复制到_dev文件夹。 运行npm install 。 You need to: Download package.json from classic theme github repository: https://github.com/PrestaShop/PrestaShop/tr ...
-
您可以使用--no-lockfile标志,您可以使用以下格式添加到.yarnrc中: --install.no-lockfile true You can use the --no-lockfile flag which you can also add to your .yarnrc in this format: --install.no-lockfile true
-
在npm安装package-lock.json后不存在。 这是因为您使用的是npm v3.10.8而package-lock.json是在5.0.0版本中引入的。 功能摘要 - 安装程序更改 *一个新的,标准化的锁文件功能,用于跨包管理器兼容性(package-lock.json),以及用于shrinkwrap的新格式和语义。 (#16441) 来源 : npm 5.0.0的功能摘要 您需要将npm更新为5.0.0以获取package-lock.json 。 为了更新npm npm update [-g] ...
-
我自己最终做了一件事: 同步yarnlock -进入- packagejson 它是一个小实用程序,可以将现有的package.json与yarn.lock同步。 syncyarnlock 将yarn.lock版本同步到yarn.lock的package.json文件中,删除动态数字,例如^,保持静态版本不变。 安装 纱 yarn global add syncyarnlock 要么 NPM npm install -g syncyarnlock 用法 Usage: syncyarnlock [opti ...
-
来自文档 对于npm修改node_modules树或package.json的任何操作,都会自动生成package-lock.json。 它描述了生成的确切树,以便后续安装能够生成相同的树,而不管中间依赖性更新。 除非你做一个npm install [module-name] ,否则基本上你不会看到它。 因为npm init只是初始化项目。 From the docs package-lock.json is automatically generated for any operations where ...
-
是否应将package-lock.json文件添加到.gitignore?(Should the package-lock.json file be added to .gitignore? [duplicate])[2022-04-05]
不, package-lock.json不应该添加到.gitignore 。 相反,我强烈建议您将其添加到存储库。 有一个强大的用例,能够相信项目的依赖关系可以在不同的机器上以可靠的方式重复解决。 从package-lock.json你可以得到如下的结论:一个已知的工作状态。 在过去,我有没有package-lock.json / shrinkwrap / yarn.lock文件的项目,这些文件的构建会在一天内失败,因为随机依赖会得到更新。 这些问题有时难以解决,因为您有时必须猜测上一个工作版本是什么。 关 ... -
当我们创建一个java类并且没有提到用于在任何java / web项目中创建这个特定类的任何包名时,eclipse / netbeans将自动创建默认包。 When we create a java class and dodnot mention any package name for creating this particular class within any java/web project the eclipse /netbeans will automatically creates th ...