Hi,
I made macro, which does this ...
When I run it, it check row and column of active/selected cell, than select range(s) from 5 cells above to 5 cells below and from 5 cells left to 5 cells right. So it looks like a cross with active/selected cell in the middle.
Macro code is ...
Should I explain something? If...else...endif sentence under c = ActiveCell.Column change column number in to the letter. vrng = vertical range, hrng = horizontal range, ac = active cell ...Please Login or Register to view this content.
So, if you run this code will work normally, as it should ... for now it is working just if active cell is more than 5 rows and 5 columns away from edge, but there is time for improvement ... I have a problem, I got error message Method range of object _Worksheet failed when I put this code in to the Worksheet object and SelectionChange procedure ...
Any idea how to resolve this or why this is not working? Oh yes, I need this, because I want that every time I'll select a cell (SelectionChange) this "selected cross" will appear.Please Login or Register to view this content.
Thx in advance ... cheers, Marko
Bookmarks