Hi, i would like to find out how to send across a worksheet object when calling a function.
My codes are as follows
___________________________________________
Private Sub EditUserCommandButton_Click()
Dim ws As worksheet
Set ws = ThisWorkbook.Sheets("LogInDataBase")
lastline (ws)
____________________________________________
Public Function lastline(ByVal ws As worksheet) As Integer
End Function
____________________________________________
when i run the program, it stops on the line in which i call the function, and displays run time error 438. object doesnt support this property or method
also, can i find out how to initialize the value of the following string
hello"" my name is xxx
string = "hello""my name is xxx"
the additional quotes within my string is causing a problem. how do i tell the editor that the quotes are part of my string.
Thank you
Bookmarks