#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default VBA text Box

is it possible to have a textbox that will automatically update with a value
as the spreadsheets are updated.
In the textbox i am setting the text equal to a cell, but the textbox is
still showing the same. it is like it doesnt recognize what i am trying to
do. is their another way of doing this

it is currently showing 220
however in the textbox i set the text = 'Sheet 1'!$A$12
which should give it a value of 334 i do not know where it is getting 220
from. Please Help
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default VBA text Box

First I inserted a textbox from the Drawing Toolbar

and then in the worksheet code area:

Private Sub Worksheet_Calculate()
Set r = Selection
ActiveSheet.Shapes("Text Box 1").Select
Selection.Characters.Text = Sheets("Sheet1").Range("A12").Value
r.Select
End Sub

Finally in A12, I put:
=NOW()
--
Gary''s Student - gsnu200830


"Soccer boy" wrote:

is it possible to have a textbox that will automatically update with a value
as the spreadsheets are updated.
In the textbox i am setting the text equal to a cell, but the textbox is
still showing the same. it is like it doesnt recognize what i am trying to
do. is their another way of doing this

it is currently showing 220
however in the textbox i set the text = 'Sheet 1'!$A$12
which should give it a value of 334 i do not know where it is getting 220
from. Please Help

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
using a conditional suffix in text function format syntax=text(value,format_text) Brotherharry Excel Worksheet Functions 1 January 13th 09 03:03 PM
grab cell text from multi-tab workbook, show text in another workb pfa Excel Worksheet Functions 16 August 10th 07 08:50 PM
Text does not display in "Text boxs" and when wrapping text in a c Esteban Excel Discussion (Misc queries) 1 March 8th 07 11:59 PM
want to remove all text characters equal to one character in length from text string [email protected] Excel Worksheet Functions 1 April 18th 05 09:56 PM
want to remove all text characters equal to one character in length from text string [email protected] Excel Worksheet Functions 1 April 18th 05 12:25 AM


All times are GMT +1. The time now is 12:16 PM.

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"