Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ayo Ayo is offline
external usenet poster
 
Posts: 489
Default Formatting values in a form control. Is it possible?

Is there a way to have a textbox on a form to display the value in a cell
exact as it is display on screen. For example, have 326.45 as a value in the
cell but I used custom format to display it as 326.45 Watts. Now I want this
to be the value in the txetbox on the form instead of just 326.45.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 128
Default Formatting values in a form control. Is it possible?

On Jun 7, 11:50 am, Ayo wrote:
Is there a way to have a textbox on a form to display the value in a cell
exact as it is display on screen. For example, have 326.45 as a value in the
cell but I used custom format to display it as 326.45 Watts. Now I want this
to be the value in the txetbox on the form instead of just 326.45.


Hello Ayo,

If your TextBox is on a VBA UserForm set the value property to the
cell's Text property...

TextBox1.Value = ActiveSheet.Range("A1").Text

Sincerely,
Leith Ross
  #3   Report Post  
Posted to microsoft.public.excel.programming
Ayo Ayo is offline
external usenet poster
 
Posts: 489
Default Formatting values in a form control. Is it possible?

Thanks a million Leith !!

"Leith Ross" wrote:

On Jun 7, 11:50 am, Ayo wrote:
Is there a way to have a textbox on a form to display the value in a cell
exact as it is display on screen. For example, have 326.45 as a value in the
cell but I used custom format to display it as 326.45 Watts. Now I want this
to be the value in the txetbox on the form instead of just 326.45.


Hello Ayo,

If your TextBox is on a VBA UserForm set the value property to the
cell's Text property...

TextBox1.Value = ActiveSheet.Range("A1").Text

Sincerely,
Leith Ross

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
2007 Form Control/ActiveX Control font difference Nikko963 Excel Discussion (Misc queries) 0 April 15th 09 04:21 PM
Initializing control values of a form TimK Excel Programming 1 September 29th 06 06:34 AM
Holding form control values within VBA Darren Excel Programming 10 December 23rd 04 07:06 PM
Tool Tip Text for Form control/ Active-X control Freddie[_2_] Excel Programming 0 October 19th 04 04:14 AM
passing control value from one form to another form mark kubicki Excel Programming 1 April 3rd 04 01:27 AM


All times are GMT +1. The time now is 05:03 AM.

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

About Us

"It's about Microsoft Excel"