Hello!
Has anyone been dealing with having more variables to increment in the loop?
For example:
I dont know..maybe there is another statement for that.![]()
Please Login or Register to view this content.
Thanks for attention!
Kirill
Hello!
Has anyone been dealing with having more variables to increment in the loop?
For example:
I dont know..maybe there is another statement for that.![]()
Please Login or Register to view this content.
Thanks for attention!
Kirill
Last edited by Cutter; 09-04-2012 at 01:44 PM. Reason: Replaced ITALIC tags with CODE tags
Kirill,
Welcome to the forum!
When you want to do something like this, you usually have a nested loop, like so:
![]()
Please Login or Register to view this content.
Hope that helps,
~tigeravatar
Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble
Thanks, tigeravatar for fast response and hostility!
But now I understand that my problem is a bit more complicated...
Because my code is like that:
![]()
Please Login or Register to view this content.
where x is a column where to paste copied data, but it seems that it takes Q number one every time instead of incrementing it simulteniously with x..
hope it is not confusing
Kirill
Last edited by Cutter; 09-04-2012 at 01:45 PM. Reason: Replaced ITALIC tags with CODE tags
What sheet do you want to paste the results to?
its sheet "Area". This sheet is the last. And column "C" from all sheets going before "Area" are transformed into histogram resulting in the sheet "Area" in the columns "U" (Bins) and "V" (Frequency). But then the macro copy column "V" to the beginning of the sheet starting in the column B and then C, D and so on for each new frequency column...omg this logic sucks :D I will understand if you give it up...
anyway thanks!![]()
@ kirill8910
Welcome to the forum.
Please notice that code tags have been added to your posts in place of the italic tags that you used. The forum rules require them so please keep that in mind and add them yourself whenever showing code in any of your future posts. To see instructions for applying them, click on the Forum Rules button at top of the page and read Rule #3.
Thanks.
Give this a try:
![]()
Please Login or Register to view this content.
wow that does the trick! combine For and If ..nice Thanks, tigeravatar!
@ Cutter
shame on me, must read rules first
@ kirill8910 (just in case you procrastinate like I do):
Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
Thanks.
Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
yea I'm professional procrastinator :D
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks