excel - Using VBA to find a string in a specific column
问题描述
I am new to VBA and using it perform fucntions in excel. I am attempting to search through the A column for a string "Parts Subtotal". Once this string is found within the column, I then want to select the cell that is 13 cells to the right. I know you have to use a combination of the find and offset functions but I nothing I try seems to be working.
解决方案
尝试这个:
Dim Index As Integer = 1
Do Until Range(Index).Value = "Parts Subtotal"
Index +=1
Loop
Range("N" & Index).Activate
推荐阅读
- reactjs - 带有 react-markdown 的新行
- python - Spyder 中的后备完成是什么?
- java - 无法将 arraylist 值传输到数组
- ruby - 取出一个类的实例以测试作为属性给出的回调
- scala - 将结构类型传递给 spark sql 数据帧中的方法或 UDFS
- php - 从崩溃计算机上的文件进行站点迁移和数据库恢复尝试
- hyperledger-fabric - 尝试链码实例化时,错误
- r - 有条件地在 facet_wrap 中填充 ggtext 文本框
- python - 使用 Flask 和 Python 构建 WebApp
- laravel - 我有 4 个用户,除非管理员 laravel 批准,否则其他两个用户无法登录