Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Function not working

Status
Not open for further replies.

vba317

Programmer
Mar 5, 2009
708
US
I have written a function to insert text into a cell. When I call the function I am getting a runtime error 438 Object doesnt support this property or method. Any help would be appreciated.

Code:
This is the call statement
Call XLInsertCellText(iRw1, 2, "Totals")


Public Sub XLInsertCellText(iCellName As Integer, iBottomRow As Integer, istrCellName As String)

' ****************************************************
' *** THIS SUB INSERTS TEXT INTO 1 CELL********
' ****************************************************
Dim strCellName As String

'goXL.ActiveSheet.Cells(iRw1, 2).Value = "Totals"

[Yellow]goXL.ActiveSheet.Cells ((iCellName) & "," & (iBottomRow) & "." & "Value" & "=" & (strCellName))[/Yellow]

End Sub
 
goXL.ActiveSheet.Cells(iCellName, iBottomRow).Value = istrCellName
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top