Results 1 to 2 of 2

Thread: VB For Applications with Excel

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2003
    Posts
    1

    VB For Applications with Excel

    Hello all,

    I am sure this gets asked alot so I am sorry but I can't find help elsewhere.

    I am trying to make a small conversion program using the built in visual basic that comes with Office 2000.

    I have made the conversion program on a form using Excel -> Macros -> Visual Basic editor, which takes me to the visual basic editor. I created it, de bugged it, and ran the program and everything works fine.

    I am now trying to leave the Visual Basic Constructer View and put the form on to my worksheet in excel.

    I am not using any part of Excel so if I can make the form work independently that would work as well.

    I have saved it, tried to compile it, but cannot figure out how to get it over to the worksheet.

    Thanks in advance.

    mattmc

  2. #2
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429
    Something like:
    VB Code:
    1. Private Sub Workbook_Open()
    2.  
    3.     Application.Windows("Book1.xls").WindowState = xlMinimized
    4.     frmMain.Show
    5.  
    6. End Sub

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