首页 \ 问答 \ 重新使用Excel VBA而不导入它(Reuse Excel VBA without importing it)

重新使用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
更新时间:2024-03-16 14:03

最满意答案

在npm安装package-lock.json后不存在。

这是因为您使用的是npm v3.10.8package-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] [...]

在你的情况下,它会

npm update -g npm

来源更新软件包


after npm install package-lock.json not exists.

This is because you are using npm v3.10.8 and package-lock.json was introduced in version 5.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 get package-lock.json. For updating the npm

npm 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。 它描述了生成的确切树,以便随后的安装能够生成相同的树,而不管中间的依赖性更新。 此文件旨在提供到源存储库, ...
  • 是的, 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 。 相反,我强烈建议您将其添加到存储库。 有一个强大的用例,能够相信项目的依赖关系可以在不同的机器上以可靠的方式重复解决。 从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 ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)