当前位置:网站首页>VBA judge whether the file exists and ask for the idea of file backup
VBA judge whether the file exists and ask for the idea of file backup
2022-06-10 16:55:00 【OOQ】
When saving a file , You may encounter a file with the same file name that already exists . here , An exception will occur when saving again , When you want to save the current file , We need to determine whether the file exists . If the file exists, we will Kill(fileName) , Then save .
If Dir(FileName) <> "" Then
MsgBox (" File exists ")
Kill (FileName)
Else
MsgBox (" file does not exist ")
End If
The above solutions , Faced with a problem , It is generally impossible to ensure the file Kill Is the missing file useful . here , You can change the file name ( original file name +Time) The way , Make a backup .
边栏推荐
- 简单实现文件上传
- Why do I need a thread pool? What is pooling technology?
- Simple file upload
- Enroulez - vous, brisez l'anxiété de 35 ans, l'animation montre le processeur enregistrer le processus d'appel de fonction, entrer dans l'usine d'interconnexion est si simple
- 一文带你了解J.U.C的FutureTask、Fork/Join框架和BlockingQueue
- 打造隐私计算领先方案 冲量在线数据互联平台获得鲲鹏Validated认证
- How does Dao achieve decentralized governance?
- Quickly understand the commonly used symmetric encryption algorithm, and no longer have to worry about the interviewer's thorough inquiry
- Customization development of defi cross chain mining DAPP system
- 圆周率 π 小数点第 100 万亿数字是多少?Google 用 Debian 服务器给出了答案
猜你喜欢

Swift read userinfo of remote notification

Meetup review how Devops & mlops solve the machine learning dilemma in enterprises?

Shit, jialichuang's price is reduced again

再联合 冲量在线与飞腾完成合作伙伴认证,携手打造信创隐私计算生态圈

智慧景区视频监控 5G智慧灯杆网关组网综合杆

Calling subroutines from other modules in VBA - call a subroutine from a different module in VBA

Devops-2- from the Phoenix Project
sql注入报错之注入原理实例解析

What are the pitfalls of redis's current network: using a cache and paying for disk failures?

Why do I need a thread pool? What is pooling technology?
随机推荐
Devops-3 cloud computing and cloud era operation and maintenance
Web2 到 Web3,意识形态也需要发生改变
Fiddler为测试做什么
AI video cloud: a good wife in the era of we media
Postman common assertions
STM32 printf garbled
sql注入报错之注入原理实例解析
Why do I need a thread pool? What is pooling technology?
Rethinking atlas revolution for semantic image segmentation (deeplobv3) personal summary
只有真正找到落地和实践元宇宙的正确方式,才能保证发展的行稳致远
New York financial regulators issue official guidelines for stable currency
解决idea打开某个项目卡住的问题
Link multiple alamofire requests - chain multiple alamofire requests
MFC基础知识与课程设计思路
互联网企业与芯片
2022 underground coal mine electrical examination question bank and online simulation examination
webdypro layout控件不能用_SAP刘梦
What are the pitfalls of redis's current network: using a cache and paying for disk failures?
Mm main tables and main fields_ SAP LIUMENG_
Simple file upload