![]() |
Text returned as 0
Hi,
I've having various problems with my VBA functions, and came to writing this test functoin to see what the .Text property is set to: Function GetText(IRange As Range) As Long If (Not IsEmpty(cl)) Then GetText = IRangeText End If End Function (My column A is a list of numbers) I called this function from the correct spreadsheet with "A2" (without the speech marks) as the argument. The visible contents of the cell is "761", but the function returned "0". I cannot figure out why this is happening. (I know the range is valid as well) (Replacing .Text with .Value makes no difference). Thanks in advance, Chris |
Text returned as 0
(by the way- i meant to write the line in the prog as
IRange.Text) -----Original Message----- Hi, I've having various problems with my VBA functions, and came to writing this test functoin to see what the .Text property is set to: Function GetText(IRange As Range) As Long If (Not IsEmpty(cl)) Then GetText = IRangeText End If End Function (My column A is a list of numbers) I called this function from the correct spreadsheet with "A2" (without the speech marks) as the argument. The visible contents of the cell is "761", but the function returned "0". I cannot figure out why this is happening. (I know the range is valid as well) (Replacing .Text with .Value makes no difference). Thanks in advance, Chris . |
All times are GMT +1. The time now is 09:50 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com