i keep getting errors when im trying to run this bit of code
I'm not even sure if this is the best way to do it. Any tips or ideas would be greatly appreciated![]()
Please Login or Register to view this content.
Regards Mag
i keep getting errors when im trying to run this bit of code
I'm not even sure if this is the best way to do it. Any tips or ideas would be greatly appreciated![]()
Please Login or Register to view this content.
Regards Mag
Last edited by Maglor; 09-30-2009 at 09:15 AM.
If iRow and iRow3 are supposed to be Long integers, then they don't have any properties, so you can't use iRow.Row as it makes no sense.
You should also be aware that if you write this:
you have actually only declared iRow3 as a Long - the others are all Variants. You need to specify a type for each:![]()
Please Login or Register to view this content.
and similarly for your worksheet variables.![]()
Please Login or Register to view this content.
Everyone who confuses correlation and causation ends up dead.
Thanks for your reply,
i didnt realise in typing it that way i was only defining the last variable as the type. seems a bit strange because i picked that up after seeing it in several different places as examples. But as that is the case i will make all the necessary adjustments in that regard.
I realise what you are saying makes sense to you but unfortunately not to me. I am trying to tell it to cut the row that is what iRow equals and paste/insert it to where iRow3 is in the other worksheet.
in my VERY limited knowledge of VBA coding i thought that the bit in () was basically saying in ws4 row 2 insert the row. where the 2 is determined by the value of iRow3.
as you are saying that is obviously wrong could you please provide the correct syntax for what im trying to achieve.![]()
Please Login or Register to view this content.
Thanks again
Regards
Mag
Sure - you need:
![]()
Please Login or Register to view this content.
Thats brilliant, worked a treat, thank you once again.![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks