Results 1 to 2 of 2

Thread: I a VB Guru

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2000
    Location
    México, D.F.
    Posts
    64

    Cool

    Hy, everyone. I´m trying to show on my Standard form the format cells of Excel(locate into an Excel cell and then push Ctrl+1), I'm using an ole from VB to Excel like this:


    '********** I M P O R T A N T
    '********** U must have to go to the project references and select the Microsoft Excel 9.0 or 8.0 Object Library

    '----------- VB code
    Option Explicit
    Dim xlsApp As Excel.Application

    Private Sub Command1_Click()

    Set xlsApp = Excel.Application
    With xlsApp
    'Show Excel
    .Visible = True
    'Create a new workbook
    .Workbooks.Add
    'Put text in to the cell that is selected
    .ActiveCell.Value = "123"

    'Put text into A3 regardless of the selected cell
    .Range("A3").Value = "456"
    '----------- VB code

    My question is: How can i show the format cells that appears in Excell


    Thanx everyone

  2. #2
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    do you mean how to format what the cells look like?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width