I have made spectacular progress since my last posting, having ditched VS2012 and used notepad and dna only. I can now programme in vba and convert directly to
vb.net. I have successfully converted virtually all of my vba project to xl dna. I may now need to revert to VS2012 to sort out the PIA version issue and create forms to replace msgbox. Before I do this one minor niggle.
How can I bring in graphics into my old style menu.
This is how I did it in VBA
Set MenuItem = MenuObject.Controls.Add(Type:=msoControlButton)
MenuItem.Caption = "Test"
MenuItem.FaceId = "1122"
MenuItem.OnAction = "Test1"
Its the FaceId I am interested in. I cannot figure out how to do this in the code I am now using in dna - as follows;
Dim myButtona As CommandBarButton = parent.Controls.AddButton()
myButtona.Caption = "Test"
myButtona.Style = MsoButtonStyle.msoButtonCaption
myButtona.OnAction = "Test1"
PS Does any one have boiler plate code for forms which I can use in notepad and dna. I note that the sample files have boiler plate code for Panes.
PPS Is Visual Studio the only route to PIA version neutrality?
Using notepad with dna is ridiculously easy! Its a great product.
Thanks for your help
Regards Jonathan