Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Control Class Module

I haven't used class modules that much, but in revising some code, I
see I can probably save some memory by using creating one.

I have 77 textboxes all formatted as currency on afterupdate:


Private Sub TextBox1_AfterUpdate()
TextBox1.Value = Format(Me.TextBox1.Value, "Currency")
End Sub
Private Sub TextBox2_AfterUpdate()
TextBox2.Value = Format(Me.TextBox2.Value, "Currency")
End Sub
Private Sub TextBox3_AfterUpdate()
TextBox3.Value = Format(Me.TextBox3.Value, "Currency")
End Sub
..
..
..
..
Private Sub TextBox77_AfterUpdate()
TextBox77.Value = Format(Me.TextBox77.Value, "Currency")
End Sub


Help is greatly appreciated.

James

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 216
Default Control Class Module

Afraid that those events are not exposed to application events.

--
HTH

Bob Phillips

(remove xxx from email address if mailing direct)

"KD" wrote in message
ups.com...
I haven't used class modules that much, but in revising some code, I
see I can probably save some memory by using creating one.

I have 77 textboxes all formatted as currency on afterupdate:


Private Sub TextBox1_AfterUpdate()
TextBox1.Value = Format(Me.TextBox1.Value, "Currency")
End Sub
Private Sub TextBox2_AfterUpdate()
TextBox2.Value = Format(Me.TextBox2.Value, "Currency")
End Sub
Private Sub TextBox3_AfterUpdate()
TextBox3.Value = Format(Me.TextBox3.Value, "Currency")
End Sub
.
.
.
.
Private Sub TextBox77_AfterUpdate()
TextBox77.Value = Format(Me.TextBox77.Value, "Currency")
End Sub


Help is greatly appreciated.

James



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
CLASS MODULE & SIMPLE MODULE FARAZ QURESHI Excel Discussion (Misc queries) 1 September 7th 07 09:32 AM
class module? sybmathics Excel Programming 17 February 25th 06 02:29 PM
Class Module Bill Martin[_2_] Excel Programming 6 January 25th 06 08:56 PM
Class module Mark[_36_] Excel Programming 2 February 17th 04 03:14 PM
Variable from a sheet module in a class module in XL XP hglamy[_2_] Excel Programming 2 October 14th 03 05:48 PM


All times are GMT +1. The time now is 02:16 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"