Click here to Skip to main content
15,889,877 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear sir



I am using ole control to add excel object.the code is

Dim xlAppl As Excel.Application
Dim xlWB As Object
Dim xlWS As Object
OLE1.CreateEmbed vbNullString,Excel.Sheet
Set xlWB = OLE1.object
Set xlWS = xlWB.Sheets(1)

but i want to add multiple sheets in this can anyone tell me how to do so


Thank You
Posted
Comments
CHill60 29-Sep-14 12:07pm    
Put a for loop around the sheet creation

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900