Excel macro conversion

Excel macro conversion

Postby Marc Vanzegbroeck » Mon Apr 11, 2022 1:52 pm

Hi,

I want to create a macro from FW in excel.

I found this sample in VB
Code: Select all  Expand view
*Dim vbp As Object
Dim newmod As Object
Set vbp = ActiveWorkbook.VBProject
Set newmod = vbp.VBComponents.Add(1)
 


I try to convert in into FWH but have a problem already with the first line. I always get an error with VBProject

Code: Select all  Expand view

oExcel = CREATEOBJECT( "Excel.Application" )
oWorkbook = oExcel:WorkBooks:Add()
vbp = oExcel:ActiveWorkbook:VBProject
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: jair and 89 guests