Hello All,
Please help me to create below shape in excel sheet using VBA
*
**
***
****
*****
****
***
**
*excel forum.pngexcel forum.xlsx
Hello All,
Please help me to create below shape in excel sheet using VBA
*
**
***
****
*****
****
***
**
*excel forum.pngexcel forum.xlsx
Last edited by rishikrsaw; 06-08-2017 at 03:00 AM. Reason: attachment
Try this:-
Regards Mick![]()
Please Login or Register to view this content.
Or this: NOTE: Worksheet .png graphic added to Original Post AFTER this was written.
Please click the Add Reputation star below any helpful posts, and if you have your answer, mark your thread as SOLVED (Thread Tools up top). Thanks!-Lee![]()
Please Login or Register to view this content.
![]()
Last edited by leelnich; 06-08-2017 at 09:11 AM.
And just for fun, this does the WHOLE DIAMOND:
Please click the Add Reputation star below any helpful posts, and if you have your answer, mark your thread as SOLVED (Thread Tools up top). Thanks!-Lee![]()
Please Login or Register to view this content.
![]()
Last edited by leelnich; 06-07-2017 at 11:02 AM.
I want to * as below excel forum.pngexcel forum.png
excel forum.png
i WANT IN THIS FORMAT
Try:-
Regards Mick![]()
Please Login or Register to view this content.
Or this, with a twist:
This WORKSHEET FORMULA could be used without VBA:![]()
Please Login or Register to view this content.
=REPT("*",5-ABS(ROW()-8))
...where 5 is the maximum string length, and 8 is the row where it occurs. Row number must be greater than max. length.
Please click the Add Reputation star below any helpful posts, and if you have your answer, mark your thread as SOLVED (Thread Tools up top). Thanks!-Lee![]()
Last edited by leelnich; 06-08-2017 at 09:13 AM.
Adding to leelnich code the border I think is required
![]()
Please Login or Register to view this content.
Last edited by nigelog; 06-08-2017 at 08:47 AM.
Just realized the range was off. If borders required, fold into same With block. (Nod to nigelog.)
Please click the Add Reputation star below any helpful posts, and if you have your answer, mark your thread as SOLVED (Thread Tools up top). Thanks!-Lee![]()
Please Login or Register to view this content.
![]()
Last edited by leelnich; 06-08-2017 at 09:24 AM.
Select the vertically consecutive cells and run the code.
![]()
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks