building a hierarchy (threeview) with VBA

shodan

Active Member
Joined
Jul 6, 2005
Messages
486
Hey all,

I think this is a difficult one.

I would like to build a hierarchy in excel using vba which would make it for the users of the spreadsheet much more easy to choose out of a certain list. The hierarchy would exist out 4 levels which are based on a cornertstone.

Is this any clear at all? Does anyone knows if there are good source or maybe scripts on the web which are farely easy to adjust?

Thanks in advance and have a nice weekend !!
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Ben,

Tx for your help. I used following script to do the export/import:

Code:
Sub ImportForm() 
    Dim wbSource As Workbook, wbDestination As Workbook 


    Set wbSource = Workbooks("Book1") 
    Set wbDestination = Workbooks("Book2") 

    wbSource.VBProject.VBComponents("Userform1").Export "C:\temp\Userform1.frm" 

    wbDestination.VBProject.VBComponents.Import "C:\temp\userform1.frm" 

    Kill "C:\temp\userform1.frm" 
    Kill "C:\temp\userform1.frx" 

End Sub

but is still gives me the same error:
Line 2: Property OleObjectBlob in frmTreeView could not be set.


PS: I did selected the treeview via the additional controls.

thanks guys!!
 
Upvote 0

Forum statistics

Threads
1,216,128
Messages
6,129,036
Members
449,482
Latest member
al mugheen

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