Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Des
 
Posts: n/a
Default 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   Report Post  
David McRitchie
 
Posts: n/a
Default

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
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
borders not aligned with cell content when printed andy g Excel Discussion (Misc queries) 2 June 5th 06 04:33 PM
Using the MAX function with "constant increment" cell references John Dwyer Excel Worksheet Functions 3 December 10th 04 03:37 PM
Function to operate on ink linked to cell Alan T Excel Worksheet Functions 0 November 20th 04 10:03 PM
Is there a function to determine whether a cell contains a formul. Christo Kriel Excel Worksheet Functions 1 November 20th 04 06:54 PM
Excel - option to extend function in cell to column kjoshua777 Excel Worksheet Functions 2 November 18th 04 01:08 AM


All times are GMT +1. The time now is 11:12 AM.

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"