Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I dont understand
1234 is a number in my world why would 'isnumeric' return it as false? More to the point when I use 'isnumber(textbox2.text)' it giving me a compile error:Sub or Function not defined isnumeric isn't another error im getting is, if you delete the data thats written to the sheet by the form it won't let you add anymore data (even if you close and restart excel) Run-time error '1004': Application-defined or object-defined error And the Debugger highlights my line of code that should write the textbox value into the Sheet Cells(y, CLng(Right(tb.Name, 1))) = tb think its getting lost as to what row to add the datainto after the deletion On Nov 26, 6:59*pm, Gord Dibben <gorddibbATshawDOTca wrote: Or maybe as Dave Peterson points out application.isnumber(cell.value) Which is much more stringent than VBA's isnumeric(cell.value) The text string '1234 will return False with excel's =isnumber() worksheet function. Gord Dibben *MS Excel MVP On Thu, 26 Nov 2009 09:37:52 -0800 (PST), macro rewind wrote: Ah should have been Isnumeric On Nov 26, 5:16*pm, macro rewind wrote: Tried this but its giving me an error when I run the command button on the form. compile error: Sub or Function not defined The Debugger than highlights "IsNumber" in grey and Function Check2 with Yellow Function check2() As Boolean 'check textbox2 has a 9 digit number If IsNumber |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Using a Macro in Excel 2004 to move entered data from one sheet toanother and space between rows when next data is entered? | Excel Programming | |||
Developing a macro that will help with mass address cleansing | Excel Programming | |||
interaction with excel and ms SQL (retrieval of records from sql intoa sheet) | Excel Programming | |||
Request for Help in Developing a Macro for a Billing Application | Excel Programming | |||
macro that takes data entered in a user form textbox to go to a ra | Excel Programming |