LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 333
Default Textbox Value Changes

Hi,

I'm having a lot of trouble with my textbox percentages.

I am using this to save the value to the worksheet:

'Save Rental Tax
With .Cells(Choice, 8)
.HorizontalAlignment = xlCenter
.NumberFormat = "0.00%;;"
Select Case frmStoreData.txtRentalTax
Case ""
.Value = Val(frmStoreData.txtRentalTax.Value)
Case 0
.Value = frmStoreData.txtRentalTax.Value
Case Is 0
.Value = frmStoreData.txtRentalTax.Value / 100
End Select
End With

I am using this to load it into the textbox:

Me.txtRentalTax.Value = Format(.Cells(Choice, 8).Value, "0.00%")

If no change is made in that particular textbox or if the value is changed
by deleting digits, i.e. change 2.45% to 2.4% by only deleting the 5, I get a
#13 Type Mismatch error.

How would I correct this?


Thanks for your help.
--

Karen
 
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
HELP! I Lost The Ability To Advance From TextBox To TextBox With the ENTER Or The TAB Keys Minitman[_4_] Excel Programming 0 February 22nd 05 08:50 PM
Textbox Bug? Missing/delayed update of textbox filled via VBA MarcM Excel Programming 0 November 4th 04 05:47 PM
Textbox Bug? Missing/delayed update of textbox filled via VBA MarcM Excel Programming 0 November 4th 04 05:43 PM
How to move cursor from one textbox control to another textbox con Tom Ogilvy Excel Programming 1 September 16th 04 03:42 PM
How to move cursor from one textbox control to another textbox con KMoore007 Excel Programming 0 September 16th 04 02:47 PM


All times are GMT +1. The time now is 05:45 PM.

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"