当前位置: 首页 > news >正文

daily notes[68]

文章目录

  • vba
  • references

vba

  1. Office VBA is an event-driven language that can automate most operations in Excel, such as those involving the mouse, keyboard, dialogs, and automatic execution.

  2. Microsoft Visual Basic for Applications (VBA) is provided with Microsoft Office as a Visual Basic language. Its version has been upgraded to 64-bit starting from Office 2019 and Microsoft 365.

  3. if your Office version is below 2019, you should use the 32-bit VBA because the 64-bit version running on that Office may cause various errors such as memory overflow, data truncation, and aberrant results when the code runs.

  4. To maintain compatibility between 32-bit and 64-bit environments, several features were added to VBA. The primary ones are as follows:

  • LongPtr: This variable type is interpreted as a Long when running in 32-bit mode and as a LongLong in 64-bit mode. It is used for pointers and handles.

  • LongLong: The LongLong data type is a signed 64-bit integer available only in the 64-bit version of Office. Use LongLong for 64-bit integers. Conversion functions must be used to explicitly assign a LongLong to smaller integer types (including LongPtr on 64-bit platforms). Implicit conversion of LongLong to smaller integers is not permitted.

  • PtrSafe: The PtrSafe keyword asserts that a Declare statement can run safely in the 64-bit version of Office.
    All Declare statements must include the PtrSafe keyword to run in the 64-bit version of Office, which implies that adding PtrSafe only signifies the statement is explicitly targeted for 64-bit.

references

  1. https://learn.microsoft.com/
http://www.dtcms.com/a/435341.html

相关文章:

  • SPI Flash基础知识点 (chatgpt版本)
  • 昆明城乡和住房建设局网站做网站公司的收费多少
  • LLM 笔记 —— 02 大语言模型能力评定
  • 做网站视频用哪个视频编辑软件网站设计相似侵权吗
  • [特殊字符]灵感补给站 | pinterest 设计灵感分享 UI版面设计3
  • 网站主机一般选哪种的远程访问群晖wordpress
  • Edit Starts找不到Mybatis Framwork依赖
  • 【C++算法】类与对象通用题目解析分享
  • C语言中原子操作(简要)
  • 珠宝行业做网站的好处网站建设平台有哪些 谢谢平台建站
  • OpenOCD 终端使用指令大全
  • JS工具函数与代码优化实战
  • 学生信息管理系统|基于Springboot的学生信息管理系统设计与实现(源码+数据库+文档)
  • 哪些ppt网站是免费的wordpress微信验证码
  • 【P0】Spring 面试篇
  • pyqt 播放视频遮罩显示 时钟
  • Day01_刷题niuke20251002
  • 做宠物商品的网站公司网页首页图片
  • 衡水建设网站长沙房地产网站建设
  • linux进程与服务
  • wordpress订阅会员seo建站技术
  • 医疗AI平台化转型:从单点试点到体系化建设的互操作性与质量控制路径研究(下)
  • JavaScript 数组清空的三种方式
  • 网站云空间和普通空间上海传媒公司官网
  • 网站标题正确书写标准微信公众号登录不上
  • 复制标签页导致的Vue动态路由失效问题解决思路
  • 从零起步学习Redis || 第六章:Redis单线程模式的实现详解
  • 影视公司网站设计河南省建设厅厅长
  • PySide6 新(建)窗口 简单示例
  • 逍遥WEBP图片转换组件XiaoyaoWebp.dll