Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 104
Default Program text in wordart

Oh Wise Ones,
This ones either really simple or can't be done.
If I have a sheet that constantly recalculates, can I have wordart display
the text of cell and change dynamically?

Thanks,
Mike
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Program text in wordart

If B1 contains a formula, then this event macro will display the contents in
WordArt:

Private Sub Worksheet_Calculate()
If ActiveSheet.Shapes.Count 0 Then
ActiveSheet.Shapes(1).Delete
End If

v = Range("B1").Value
ActiveSheet.Shapes.AddTextEffect(msoTextEffect1, v, "Arial Black", _
36#, msoFalse, msoFalse, 294.75, 184.5).Select
Application.CommandBars("WordArt").Visible = False
End Sub

Put the macro in the worksheet code area
--
Gary''s Student - gsnu200818
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 104
Default Program text in wordart

Gary's Student,
Absolutely nothing is happening. What am I
doing wrong?

Mike

"Gary''s Student" wrote:

If B1 contains a formula, then this event macro will display the contents in
WordArt:

Private Sub Worksheet_Calculate()
If ActiveSheet.Shapes.Count 0 Then
ActiveSheet.Shapes(1).Delete
End If

v = Range("B1").Value
ActiveSheet.Shapes.AddTextEffect(msoTextEffect1, v, "Arial Black", _
36#, msoFalse, msoFalse, 294.75, 184.5).Select
Application.CommandBars("WordArt").Visible = False
End Sub

Put the macro in the worksheet code area
--
Gary''s Student - gsnu200818

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Program text in wordart

Let's start with a clean sheet.

1. In A1 enter:
happiness


2. in B1 enter:
=A1


3. make sure the macro is installed in the worksheet code area, NOT a
standard module. Because it is worksheet code, it is very easy to install
and use:

a. right-click the tab name near the bottom of the window
b. select View Code - this brings up a VBE window
c. paste the stuff in and close the VBE window



4. change A1 to:
sadness

WordArt should appear.


--
Gary''s Student - gsnu200818


"Mike K" wrote:

Gary's Student,
Absolutely nothing is happening. What am I
doing wrong?

Mike

"Gary''s Student" wrote:

If B1 contains a formula, then this event macro will display the contents in
WordArt:

Private Sub Worksheet_Calculate()
If ActiveSheet.Shapes.Count 0 Then
ActiveSheet.Shapes(1).Delete
End If

v = Range("B1").Value
ActiveSheet.Shapes.AddTextEffect(msoTextEffect1, v, "Arial Black", _
36#, msoFalse, msoFalse, 294.75, 184.5).Select
Application.CommandBars("WordArt").Visible = False
End Sub

Put the macro in the worksheet code area
--
Gary''s Student - gsnu200818

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 104
Default Program text in wordart



If I weren't such a moron I wouldn't have wasted more of your time. I guess
This Workbook does not equal worksheet code.

"Gary''s Student" wrote:

Let's start with a clean sheet.

1. In A1 enter:
happiness


2. in B1 enter:
=A1


3. make sure the macro is installed in the worksheet code area, NOT a
standard module. Because it is worksheet code, it is very easy to install
and use:

a. right-click the tab name near the bottom of the window
b. select View Code - this brings up a VBE window
c. paste the stuff in and close the VBE window



4. change A1 to:
sadness

WordArt should appear.


--
Gary''s Student - gsnu200818


"Mike K" wrote:

Gary's Student,
Absolutely nothing is happening. What am I
doing wrong?

Mike

"Gary''s Student" wrote:

If B1 contains a formula, then this event macro will display the contents in
WordArt:

Private Sub Worksheet_Calculate()
If ActiveSheet.Shapes.Count 0 Then
ActiveSheet.Shapes(1).Delete
End If

v = Range("B1").Value
ActiveSheet.Shapes.AddTextEffect(msoTextEffect1, v, "Arial Black", _
36#, msoFalse, msoFalse, 294.75, 184.5).Select
Application.CommandBars("WordArt").Visible = False
End Sub

Put the macro in the worksheet code area
--
Gary''s Student - gsnu200818



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 104
Default Program text in wordart

Didn't mean to hit reply yet. Brilliant!! Works as advertised! My bad. You
good.

Thanks a bunch,
Mike

"Gary''s Student" wrote:

Let's start with a clean sheet.

1. In A1 enter:
happiness


2. in B1 enter:
=A1


3. make sure the macro is installed in the worksheet code area, NOT a
standard module. Because it is worksheet code, it is very easy to install
and use:

a. right-click the tab name near the bottom of the window
b. select View Code - this brings up a VBE window
c. paste the stuff in and close the VBE window



4. change A1 to:
sadness

WordArt should appear.


--
Gary''s Student - gsnu200818


"Mike K" wrote:

Gary's Student,
Absolutely nothing is happening. What am I
doing wrong?

Mike

"Gary''s Student" wrote:

If B1 contains a formula, then this event macro will display the contents in
WordArt:

Private Sub Worksheet_Calculate()
If ActiveSheet.Shapes.Count 0 Then
ActiveSheet.Shapes(1).Delete
End If

v = Range("B1").Value
ActiveSheet.Shapes.AddTextEffect(msoTextEffect1, v, "Arial Black", _
36#, msoFalse, msoFalse, 294.75, 184.5).Select
Application.CommandBars("WordArt").Visible = False
End Sub

Put the macro in the worksheet code area
--
Gary''s Student - gsnu200818

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
WordArt Bojingles03 New Users to Excel 3 February 17th 09 06:09 PM
reference cell from wordart text box Brian P Bauer Excel Discussion (Misc queries) 0 June 21st 06 03:48 PM
wordart ME @ Home Excel Programming 3 February 19th 06 07:24 PM
wordart Shawn G. Excel Programming 2 August 25th 05 01:34 PM
Hiding Shapes When Not WordArt , or When WordArt Text < "Draft" Carroll Rinehart Excel Programming 2 September 18th 04 07:40 PM


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