#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 209
Default error

Hi
I have this in a userform

If CDbl(TextBox17.Value) 0 Then
sum
End If
Its working all right but if i go back and maybe will change the value in
this box
and delete all then i get a error, how can i make it so i don't get thsi
error if
i delete the value and will write a new one in the textbox

Regards

Alvin

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default error

Hi
you may post the complete code. Not really sure what you're meaning
with 'go back and delete'

--
Regards
Frank Kabel
Frankfurt, Germany


Alvin Hansen wrote:
Hi
I have this in a userform

If CDbl(TextBox17.Value) 0 Then
sum
End If
Its working all right but if i go back and maybe will change the
value in this box
and delete all then i get a error, how can i make it so i don't get
thsi error if
i delete the value and will write a new one in the textbox

Regards

Alvin


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 209
Default error

I have found out what i can do
i use
Private Sub TextBox23_Change()
If IsNumeric(TextBox23.Value) Then
chk8
End If
End Sub
Then is dosn't make a error in my sub chk8
But maybe you can help me with this

I use formatnumber and its working allright
but i have som textbox where i in my userform can
write a value fe.ks. 100 can't i use formatnumber also in this cells
so when i write the number its from the start format the cell
to 100,00

Best regards alvin





"Frank Kabel" skrev:

Hi
you may post the complete code. Not really sure what you're meaning
with 'go back and delete'

--
Regards
Frank Kabel
Frankfurt, Germany


Alvin Hansen wrote:
Hi
I have this in a userform

If CDbl(TextBox17.Value) 0 Then
sum
End If
Its working all right but if i go back and maybe will change the
value in this box
and delete all then i get a error, how can i make it so i don't get
thsi error if
i delete the value and will write a new one in the textbox

Regards

Alvin



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error of slope taking into account error of the data points cer144 Excel Worksheet Functions 5 July 7th 08 07:26 PM
Counting instances of found text (Excel error? Or user error?) S Davis Excel Worksheet Functions 5 September 12th 06 04:52 PM
Excel 2003 Macro Error - Runtime error 1004 Cow Excel Discussion (Misc queries) 2 June 7th 05 01:40 PM
Automation Error, Unknown Error. Error value - 440 Neo[_2_] Excel Programming 0 May 29th 04 05:26 AM


All times are GMT +1. The time now is 10:40 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"