Importing code from VB to VBA

Rasm

Well-known Member
Joined
Feb 9, 2011
Messages
505
I have had good luck importing BAS files from Visual Studio - Is there a way to also export Userforms from VB6 and then import them to Excel.
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Try right-clicking the form in the VBAProject window and then export. Then the exported .fm file should be importable to another project.

AMAS
 
Upvote 0
No - VB6 uses different forms from VBA.
 
Upvote 0
Thanks for the correction Roya. I keep forgetting that VB (like office features) changed from Excel 2003 to the 2010. I'm using Office 2010 which I believe uses VB 8 and the features may have changed over the years.

AMAS
 
Upvote 0
Vba forms are unchanged in 2010 (it uses vba7)
 
Upvote 0
Rory
If I build DLLs in VB6 - can I call them from xl2007 - I assume that should not be a problem. Do you know?
Thanks
 
Upvote 0

Forum statistics

Threads
1,224,551
Messages
6,179,476
Members
452,915
Latest member
hannnahheileen

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top