Wrox Programmer Forums
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 29th, 2007, 01:51 AM
Friend of Wrox
Join Date: Jan 2006
Posts: 180
Thanks: 1
Thanked 1 Time in 1 Post
Send a message via ICQ to dpkbahuguna Send a message via MSN to dpkbahuguna Send a message via Yahoo to dpkbahuguna
Default Excel Object

Hi Friends!!

   I've excel programe. In the Bold expression i want to use my defined object for "worksheets" can someone tell me how can i do that.

source is here:

   Private Sub Form_Load()
    Set ea = CreateObject("Excel.Application")
    Set wb = ea.workbooks.Add
    Set sht = wb.worksheets.Add

    Set shts = wb.worksheets

    ea.Visible = True

    sht.cells(1, 2) = "deepak"

    Set a = ea.ActiveWorkbook



End Sub


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel object Error dpkbahuguna Beginning VB 6 7 August 2nd, 2006 03:14 PM
Excel Object Model Yagilh Excel VBA 5 February 22nd, 2005 04:38 PM
Printing using EXCEL object Bruce Pro VB 6 0 January 14th, 2005 10:11 AM
To access "EXCEL" object mcinar Classic ASP Basics 7 November 30th, 2004 12:44 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.