Hey there,
Does anyone knows how can I make this function compatible with 64 bits systems?
I was playing around with the PtrSafe but can't find the proper way to make it works :S
Thanks in advance!
Does anyone knows how can I make this function compatible with 64 bits systems?
Code:
Function SheetExists(strSheetName As String) As Boolean
' returns TRUE if the sheet exists in the active workbook
SheetExists = False
On Error Resume Next
SheetExists = Len(Sheets(strSheetName).Name) > 0
On Error GoTo 0
End Function
I was playing around with the PtrSafe but can't find the proper way to make it works :S
Thanks in advance!