I have this defined in a VB6 program that I am moving to VBA. There does not seem to be a CRect object available, is there a library I can load to use it?
Private DragRect As New CRect
Thanks,
Bob
I have this defined in a VB6 program that I am moving to VBA. There does not seem to be a CRect object available, is there a library I can load to use it?
Private DragRect As New CRect
Thanks,
Bob
That's not a VBA thing. What are you trying to do?
Entia non sunt multiplicanda sine necessitate
Trying to move and resize controls at runtime. I have code to do it in VB6 but it wont work in VBA, got any ideas on how to do it?
Dunno. Maybe
![]()
Please Login or Register to view this content.
Hello excelbobabc,
The CRect object exists in Visual Studio but does not have a VBA analog. Since you are migrating the code, you would have to post your VB6 code before a solution could be proposed.
Sincerely,
Leith Ross
Remember To Do the Following....
1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.2. Thank those who have helped you by clicking the Starbelow the post.
3. Please mark your post [SOLVED] if it has been answered satisfactorily.
Old Scottish Proverb...
Luathaid gu deanamh maille! (Rushing causes delays!)
I need to move and resize the controls with the mouse
It's quite tricky to convert code we can't see.![]()
Everyone who confuses correlation and causation ends up dead.
Are you resizing controls when the userform changes size? If so this may help.
http://www.andypope.info/vba/Anchor.htm
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks