Hi
I have the following code that is supposed to check cell AC for "YES" , if that is correct then put data into AH:AT from the row immediately above it.
What am I doing wrong?
Thanks
Jon
![]()
Please Login or Register to view this content.
Hi
I have the following code that is supposed to check cell AC for "YES" , if that is correct then put data into AH:AT from the row immediately above it.
What am I doing wrong?
Thanks
Jon
![]()
Please Login or Register to view this content.
Last edited by endoskeleton; 05-25-2011 at 04:00 PM.
What's the Rw variable? Shouldn't that be LR???
Is your code running too slowly?
Does your workbook or database have a bunch of duplicate pieces of data?
Have a look at this article to learn the best ways to set up your projects.
It will save both time and effort in the long run!
Dave
Hi Dave
I'm very new to VBA, but on a steep learning curve.
I see what you mean but when I replace the Rw with LR, the macro runs but nothing happens.
It seems like it is finding no instances of "YES" within col AC.
The "YES" in Column AC is actually generated by a formulaand then copied down the column does that make a difference ?![]()
Please Login or Register to view this content.
Cheers
Jon
Your code only looks at the last cell in Colum AC. If you want to look at every cell in the column, you have to loop through each of them:
![]()
Please Login or Register to view this content.
Hi Dave,
Ahh I see,.
Didn't work the way at wanted at first until I realized that is was actually overwriting where I already had data. Once I changed the destination range it worked like a dream.
Thanks so much for your help.
Jon
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks