#1   Report Post  
Posted to microsoft.public.excel.programming
del del is offline
external usenet poster
 
Posts: 2
Default shapes

hi,
am trying to write code to display a small rectangle in
the next cell if the current cell is not empty.

example. A1 and B1 are blank but once data in entered
into A1, a rectangle should display in B1.

can anyone please help me with that?

thanx
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default shapes

del,

Well, the quick and dirty way would be to change the font
of the cell into Webdings or Wingdings like the following:

If Not IsEmpty(Range("A1")) Then
Range("B1").Font.Name = "Webdings"
Range("B1").Value = 1
End If

You have to play around with different characters to find
the shape that you want. Granted, this does not give you
much control over the exact specifications of your shape,
but you may find something satisfactory to what you want.

-----Original Message-----
hi,
am trying to write code to display a small rectangle in
the next cell if the current cell is not empty.

example. A1 and B1 are blank but once data in entered
into A1, a rectangle should display in B1.

can anyone please help me with that?

thanx
.

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
excel document with shapes on it but the shapes do not print [email protected] Excel Worksheet Functions 2 October 22nd 09 06:17 PM
Naming Auto Shapes and Creating new Shapes AL2000 Excel Discussion (Misc queries) 3 September 10th 07 04:12 AM
When drawing shapes in excel the shapes keep disappearing Tape Excel Discussion (Misc queries) 1 October 6th 06 04:23 PM
How can i get more 3D shapes for Auto shapes in excel? Ajey Excel Discussion (Misc queries) 0 March 3rd 05 09:53 AM
How can i get more 3D shapes for Auto shapes in excel? Ajey Excel Discussion (Misc queries) 0 March 3rd 05 09:53 AM


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