首页 > 解决方案 > 在 64 位 Excel 中从 VBA 编写注册表

问题描述

我使用 Chip Pearson 的例程 (www.cpearson.com/excel/registry.htm) 从 Excel VBA 程序中读取和写入注册表值。它们在 32 位 Excel 上工作,但甚至不能在 64 位 Excel 上编译。

今天我发现了这些https://vba-corner.livejournal.com/3054.html。它们在 32 位 Excel 中工作,在 64 位 Excel 上它们编译正常并读取注册表,但由于某些访问权限而无法写入注册表或删除键。我以管理员身份运行 Excel,所以我应该拥有所有权限。

有没有办法在 64 位 Excel 中使用 VBA 写入注册表值?

谢谢你。

标签: excelvbaregistry

解决方案


推荐阅读