I forgot to mention that I am using VB.
please post your sub the way you have it and it'll be nice if you post a full working (or not working) sample so we can copy, past it and run it right away without adding additional code to to make it work...as it is, it all seems to be ok.
Thank you for replying. Next itme i will be sure to add a complete code. The main reason i didnt is because the code is approx. 40 pages long.
I actually just figured out what the problem was about 3 minutes ago. I had not declared refArtboard as an artboard inside the subroutine. This is my first time using a subroutine so I am not at all familiar with it. appearently variable declarations do not pass into subroutines.
Glad to hear you figured it out, correct you have to declare your object in the subrutine