Results 1 to 9 of 9

Thread: Very Urgent....pls help (Resolved)

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2005
    Posts
    100

    Very Urgent....pls help (Resolved)

    Hi,

    I hope someone would be able to help. Thanx

    I have got two excel files. "Test1.xsl" and "Test2.Excel". I have written the following code.

    Test1.xsl

    VB Code:
    1. Sub Product_Development()
    2.    Set wBook = Workbooks("Test2.xls")
    3.    wBook.Sheets("Sheet1").Activate
    4.    If wBook Is Nothing Then 'Not open
    5.            MsgBox "Workbook is not open", _
    6.            vbCritical, "OzGrid.com"
    7.            Set wBook = Nothing
    8.            On Error GoTo 0
    9.        Else 'It is open
    10.            MsgBox "Yes it is open", _
    11.            vbInformation, "OzGrid.com"
    12.            Set wBook = Nothing
    13.            On Error GoTo 0
    14.    End If
    15.    Range("A1").Select
    16.    ActiveCell.Offset(0, 0) = "Product Development"
    17.    'Dim frm As Object
    18.      
    19.    'Dim test
    20.    'frm.OpenNewLeadEntryForm
    21.    'MsgBox test
    22.      
    23. ' wBook.
    24.      
    25. ' open new initiative form in internal funnel
    26.  
    27. End Sub


    How do i call a functionshown below that is in "Test2.xsl" from the above code?

    VB Code:
    1. Sub OpenNewLeadEntryForm()
    2.    Application.ScreenUpdating = False
    3.    frmNewLeadEntry.Show
    4.    'cell = "Product Development"
    5. End Sub


    This is very urgent. I hope someone can help me. Thanx
    Last edited by sand; Jun 27th, 2005 at 09:01 PM.

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