Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Function to set borders of cell
Is it possible to have a UDF which will set the borders of a cell based on its (or another cell's) value. Conditional formatting is good but I am restricted to one line width. Des -- Des ------------------------------------------------------------------------ Des's Profile: http://www.msusenet.com/member.php?userid=690 View this thread: http://www.msusenet.com/t-1870083718 |
#2
|
|||
|
|||
A function can only return a value -- doesn't matter if it is a
builtin function for Excel or VBA or if it is a UDF. A function cannot change formatting of any cell, nor can it change the value of another cell. You would need a macro and more specifically, probably an event macro. If the value of the cell being changed is by changing it manually and not from a formula you would probably want to use a a Change Event macro. http://www.mvps.org/dmcritchie/excel/event.htm#change Record a macro to get an idea of the code you need to use. HTH, David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001] My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm Search Page: http://www.mvps.org/dmcritchie/excel/search.htm "Des" wrote in message ... Is it possible to have a UDF which will set the borders of a cell based on its (or another cell's) value. Conditional formatting is good but I am restricted to one line width. Des -- Des ------------------------------------------------------------------------ Des's Profile: http://www.msusenet.com/member.php?userid=690 View this thread: http://www.msusenet.com/t-1870083718 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
borders not aligned with cell content when printed | Excel Discussion (Misc queries) | |||
Using the MAX function with "constant increment" cell references | Excel Worksheet Functions | |||
Function to operate on ink linked to cell | Excel Worksheet Functions | |||
Is there a function to determine whether a cell contains a formul. | Excel Worksheet Functions | |||
Excel - option to extend function in cell to column | Excel Worksheet Functions |