Results 1 to 7 of 7

Thread: Package and Install

Hybrid View

  1. #1

    Thread Starter
    Fanatic Member Jumpercables's Avatar
    Join Date
    Jul 2005
    Location
    Colorado
    Posts
    592

    Re: Package and Install

    I am using all objects however I am using this statement to locate cells and its the only reason I have the excel reference.
    VB Code:
    1. 'Finds the location of a cell that contains the string provide.
    2. 'If found returns the cell number location if not found returns -1
    3. Private Function FindCellLocation(Sheet As Object, Look As String) As Integer
    4.     Dim nCol As Integer
    5.        For nCol = 1 To Sheet.Cells.SpecialCells(xlCellTypeLastCell).Column
    6.         If Sheet.Cells(4, nCol).Value = Look Then
    7.             FindCellLocation = nCol
    8.             Exit For
    9.         End If
    10.         FindCellLocation = -1
    11.     Next nCol
    12. End Function

    Is there any way to preform this section without the reference? If not then I know this program works on the platform it was designed to run on. So I could technically keep the reference. In that case how would I add the execl reference? Or is that not needed if the current version of excel works with the program its running on.

    And how do you add the other dependanciess?
    Last edited by Jumpercables; Oct 8th, 2005 at 03:01 AM.

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