VBE循环 [英] VBE loops

查看:156
本文介绍了VBE循环的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨伙计们。警告VBA新手。

Hi folks. Warning VBA rookie.

我的任务是在excel中编写一个宏,但真的不知道从哪里开始。我记录了一个成功运行过程的宏,但是在循环它时遇到问题。我需要 执行以下操作:

I have been tasked to write a macro in excel and really not sure where to start. I recorded a macro that runs through the process once successfully but am having trouble looping it. I need  to do the following :

1。在1个工作簿中打开表3

1. within 1 workbook open sheet 3

2。复制列中每个单元格的值(其中100个都是整数值)

2. copy the value of each cell in a column (100s of them all integer values)

3。激活工作表1,

4。选择A3,

5。将步骤2中复制的单元格的值粘贴到工作表1中A3

5. paste the value of the cell copied in step 2 into sheet 1 A3

6。运行预建脚本

7。从表3中获取下一个单元格;重复,直到它击中列中的空单元格。

7. go get the next cell from sheet 3; repeat until it hits an empty cell in the column.

有人可以告诉我如何使这个循环工作吗?

can someone give me an idea on how to make this loop work?

推荐答案

您好,

也许主持人会将您的问题转移到
Excel for Developers论坛
这是这个问题的最佳位置,因为它是Excel而不是VB.NET。

Perhaps a moderator will move your question to Excel for Developers forum which is the best place for this question as it is Excel and not VB.NET.


这篇关于VBE循环的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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