Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 116
Default Draw Diagonal Cell by Cell

Is it possible to activate any cell by doubleclicking it,
for the purpose of drawing a diagonal line in the next
cell higher and to the left, and continue upwards diagonally
until a margin is hit (such as column A, or horizonally row A.. Z...

A B C D E F
1 \
2 \
3 \
4 \
5 123

Similarly, ascending to the right

A B C D E F G
1 /
2 /
3 /
4 /
5 123

From any cell


With Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Draw Diagonal Cell by Cell

Yes you can.

ActiveSheet.Shapes.AddLine(171.75, 260.25, 221.25, 275.25).Select
expression.AddLine(BeginX, Beginy, EndX, EndY)

Each cell has a left and top parameter that you can use for the begin and
end points.

"smandula" wrote:

Is it possible to activate any cell by doubleclicking it,
for the purpose of drawing a diagonal line in the next
cell higher and to the left, and continue upwards diagonally
until a margin is hit (such as column A, or horizonally row A.. Z...

A B C D E F
1 \
2 \
3 \
4 \
5 123

Similarly, ascending to the right

A B C D E F G
1 /
2 /
3 /
4 /
5 123

From any cell


With Thanks


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 116
Default Draw Diagonal Cell by Cell

Thanks for replying.

However, I need the draw line to be cell by cell.
Therefore, some looping need be employed.

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
diagonal split in a cell Southern at Heart Excel Discussion (Misc queries) 4 May 19th 09 01:42 AM
Cell split with diagonal. RainyDay Excel Discussion (Misc queries) 2 October 21st 08 12:12 AM
how do I add a autoshape such as a diagonal line to a cell kim Excel Discussion (Misc queries) 0 May 16th 08 02:37 PM
Can you make a cell with a diagonal, so that you can edit the upper and lower part of the cell? g wills New Users to Excel 3 February 17th 05 10:23 PM
Two Different Diagonal Border Colors in the Same Cell James Cox[_2_] Excel Programming 0 November 1st 04 10:04 PM


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