excel - 从自动更新的 Excel 数据创建日历
问题描述
我想:
根据 Excel 数据创建日历文件(我知道怎么做)
每当更新 Excel 文件时,日历都会在日历应用程序中自动刷新
那可能吗?我可以使用什么功能?
谢谢,
亚历克斯
解决方案
您可以使用Worksheet.Change
事件,它会在用户或外部链接更改工作表上的单元格时运行。
例如(以下代码示例将 A1:A10 范围内的值设置为大写,因为数据输入到单元格中):
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("A1:A10")) Is Nothing Or Target.Cells.Count > 1 Then Exit Sub
Application.EnableEvents = False
'Set the values to be uppercase
Target.Value = UCase(Target.Value)
Application.EnableEvents = True
End Sub
有关更多信息,请参阅此链接:
推荐阅读
- google-cloud-platform - 在云函数中运行云 shell 命令
- c++ - 如何使用迭代器填充未知大小的向量?
- python - 想要使用beautifulsoup的script标签下的变量值
- angular - 我们可以根据角度条件为图标设置禁用属性吗
- javascript - 问题:如何获取数组索引id?在 Vuejs 中
- user-interface - 在 Firefox 的 (v71) 开发人员工具中/从并排排列或分离 Inspector 或/和(Web)控制台
- google-sheets - 如何在谷歌表格的arrayformula中加入年份和星期数
- python - pandas根据同一个ID填空值
- azure - Pdftron Sdk 在 azure Web 应用程序服务中抛出错误?
- android-studio - Android studio 3.5.1(SDK 29.0.3) 导致损坏的 avd root