From Ashton. When I run this code in a VB6 program, it puts an OLEObject on an Excel sheet. Private Sub Command1_Click()
Dim xlApp As Excel.Application
Set xlApp = Excel.Application
xlApp.Visible = True
xlApp.Workbooks.Add
xlApp.ActiveSheet.OLEObjects.Add "Forms.Commandbutton.1"
Set xlApp = Nothing
[...]
Read More...
Read the complete post at http://www.dailydoseofexcel.com/archives/2008/01/28/commandbuttons-via-visual-basic-60/
Posted
Jan 28 2008, 10:04 PM
by
Daily Dose of Excel