Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default modify cells from VBA formula context

Hi,

Is there some way I can modify cell properties from a formula context?
I have a formula that takes a range as a parameter in in that formula
I call another sub that is supposed to change font color on the cells
in that range but for some reason nothing happens.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default modify cells from VBA formula context

UDFs cannot change their environment.
So this will not work from a formula.

NickHK

"Nik" wrote in message
ups.com...
Hi,

Is there some way I can modify cell properties from a formula context?
I have a formula that takes a range as a parameter in in that formula
I call another sub that is supposed to change font color on the cells
in that range but for some reason nothing happens.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 63
Default modify cells from VBA formula context

Have you tried conditional formatting?
Carl
On Mar 26, 4:15 am, "Nik" wrote:
Hi,

Is there some way I can modify cell properties from a formula context?
I have a formula that takes a range as a parameter in in that formula
I call another sub that is supposed to change font color on the cells
in that range but for some reason nothing happens.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default modify cells from VBA formula context

A formula or UDF cannot directly change a cell's colour. This can be
accomplished with either Conditional formatting or an Event Porcedure.
--
Gary''s Student
gsnu200712

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
modify all formula references in multiple cells Bengineer Excel Discussion (Misc queries) 3 February 21st 09 03:29 PM
How can I modify these cells? Vic Baron New Users to Excel 5 April 27th 08 05:58 PM
Storing Context Information in Cells Drew Lettington Excel Programming 2 March 16th 06 10:16 PM
How to disable the "Insert Copied Cells" context menu item Coen Excel Programming 21 February 9th 05 09:37 PM
to modify cells from a function Pierre Laporte Excel Programming 1 July 10th 03 02:11 PM


All times are GMT +1. The time now is 01:25 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"