PC Review


Reply
Thread Tools Rate Thread

Draw Diagonal Cell by Cell

 
 
smandula
Guest
Posts: n/a
 
      9th Oct 2007
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

 
Reply With Quote
 
 
 
 
=?Utf-8?B?Sm9lbA==?=
Guest
Posts: n/a
 
      9th Oct 2007
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
>
>

 
Reply With Quote
 
smandula
Guest
Posts: n/a
 
      10th Oct 2007
Thanks for replying.

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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
diagonal split in a cell Southern at Heart Microsoft Excel Misc 8 19th May 2009 01:42 AM
diagonal split in a cell Southern at Heart Microsoft Excel Misc 0 18th May 2009 11:23 PM
Cell split with diagonal. RainyDay Microsoft Excel Misc 2 21st Oct 2008 12:12 AM
diagonal in a table cell =?Utf-8?B?SmFuQWRhbQ==?= Microsoft Word Document Management 0 1st Oct 2007 09:06 PM
Can you make a cell with a diagonal, so that you can edit the upper and lower part of the cell? g wills Microsoft Excel New Users 3 17th Feb 2005 10:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:10 PM.