找到一个零,特殊字符和返回行号 [英] Find a single zero, special charcters and return row number

查看:102
本文介绍了找到一个零,特殊字符和返回行号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个宏来识别特殊字符和单个零。然后突出显示这些行并在弹出窗口中返回行号。


列A列表示例:


98%kl

45tds $

123450

0

CE 123

这是我到目前为止所做的,但我找不到用单个零(0)突出显示行的方法,并且不能使它返回行号



任何帮助将不胜感激


I need a macro to identify special characters and single zero. Then highlight those rows and return with the row number in a pop up window.

Example of list in column A:

98%kl
45tds$
123450
0
CE 123

This is what I have so far, but I can''t find the way to highlight rows with a single zero ("0") and can''t make it return the row numbers


Any help will be appreciated


展开 | 选择 | Wrap | 行号

推荐答案



123450

0

CE 123




任何帮助将不胜感激



123450
0
CE 123

This is what I have so far, but I can''t find the way to highlight rows with a single zero ("0") and can''t make it return the row numbers


Any help will be appreciated


展开 | 选择 | Wrap | 行号


Jomar153:


我刚发现这个帖子,是你还在处理这个问题吗?


你是否需要突出显示单元格或整行(单元格会更容易)?


你好吗?你需要突出显示两个零的东西,例如:x00x或者0x0x,或者只是一个只包含单个0的单元格

我们可以将搜索简化为仅包含字母数字少于数字0的字符串,([az] [AZ] [1-9])?


空格> x x"或xxxx xx或等等...?

你真的想要一个包含所有行号的单个消息框,或者每次找到有问题的单元时你真的需要一个消息框吗? ?


第21行
Jomar153:

I just spotted this thread, are you still working on this issue?

Do you need the cell or the entire row highlighted (cell would be easier)?

Do you need to highlight something with two zeros, for example: "x00x" or "0x0x", or just a cell containing only a single "0"

Can we simplify your search to strings that only contain alphanumerics less the number 0, ([a-z][A-Z][1-9])?

what about spaces "x x" or "xxxx xx" etc...?

Do you really want a single message box with all of the row numbers in one go, or do you really need a message box each time the offending cell is located?

Line 21
展开 | 选择 | Wrap | 行号


@ jomar153:欢迎来到Bytes.com

我对你的aproach并不熟悉VBScript.RegExp。 (NeoPA - Mod - 解释了它,但我仍然感到困惑)


所以我给出了我的方法,另一种确定特殊字符的方法和单独的Zero,基于ACSII代码: br />
@jomar153: Welcome to Bytes.com
I''m not familiar to your aproach with "VBScript.RegExp" (NeoPA - Mod - has explained it, but I still confusing)

So I give your my approach, another way to determind special character and the Zero alone, base on ACSII code:
展开 | 选择 | Wrap | 行号


这篇关于找到一个零,特殊字符和返回行号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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