Excel !! VBA脚本用于搜索具有整个文件名的唯一部分的文件 [英] Excel !! VBA Script to search a file with a unique part of the whole file name

查看:79
本文介绍了Excel !! VBA脚本用于搜索具有整个文件名的唯一部分的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我需要一个excel vba脚本,在输入(唯一)后找到一个唯一的命名文件这个文件名的一部分。脚本应该找到这个文件,然后我想从这个文件中自动读取并导入一些单元格。

I need an excel vba script to find a unique named file after the input of a (unique) part of this filename. The script should find this file and afterwards I want to read and import some cells automatically from this file.

例如 - 用户输入是"12345"。并且脚本应该找到文件"Data12345-01.xlsx"。在给定的路径及其子文件夹中。

By example - User input is "12345" and the script should find the file "Data12345-01.xlsx" in a given path and its subfolders.

有人可以帮我创建这个脚本吗?

Could anyone help me to creat this script?

提前致谢 

Thanks in advance 

Twixt 

Twixt 

推荐答案

嗨  Statler_68,

Hi Statler_68,

感谢您访问Excel IT专业讨论论坛。 

Thanks for visiting Excel IT Pro Discussions forum. 

然后我们主要关注Excel的一般问题客户。由于您正在寻找一个excel vba脚本,我将把您的主题移到以下专用于Excel的MSDN论坛:

Then here we mainly focus on general issues about Excel client. Since you are looking for an excel vba script, I' ll move your thread to the following dedicated MSDN forum for Excel:



祝您好运,

Yuki Sun


Best regards,
Yuki Sun


这篇关于Excel !! VBA脚本用于搜索具有整个文件名的唯一部分的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆