Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Format & ControlSource

I want a TextBox with ControlSource use the same Number-Format as the
ControlSource-cell.

Is my perception correct that there is no easy way to do this (but to write
a textbox_change procedure)?

Oskar von dem Hagen

P.S. Excel 2K, W2K SP4
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default Format & ControlSource

This is a problem Oskar.

I tend to remove ControlSource in these cases and use the Enter event to
format it., like so

Private Sub TextBox1_Enter()
TextBox1.Text = Format(TextBox1.Text, "dd-mmm")
End Sub


--
HTH

Bob Phillips

"Oskar von dem Hagen" wrote in
message ...
I want a TextBox with ControlSource use the same Number-Format as the
ControlSource-cell.

Is my perception correct that there is no easy way to do this (but to

write
a textbox_change procedure)?

Oskar von dem Hagen

P.S. Excel 2K, W2K SP4



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
ControlSource Greg[_20_] Excel Programming 2 April 2nd 05 04:57 AM
ODBC ControlSource Dkso Excel Programming 5 June 28th 04 11:03 AM
Controlsource David Coleman Excel Programming 5 December 28th 03 01:14 PM
ControlSource Compatibility VBA - VB6 John M[_4_] Excel Programming 2 October 19th 03 05:30 PM
ControlSource problem Christy[_2_] Excel Programming 1 August 28th 03 03:44 AM


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