Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Meenachi Suppiah   on Aug 24 In MS Office Category.

  
Question Answered By: Erin Dunn   on Aug 24

Functions aren't meant to change  formatting etc. only return a value.

Have your code called from a Worksheet Change event:

Private Sub Worksheet_Change(ByVal Target As Range)
'call your macro here (your macro can remain in a standard code
'module)
End Sub

This should be in the worksheet code module of the worksheet you want
this to happen in. Use Target instead of Activecell or Selection.

Share: 

 

This Question has 3 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Using excel VBA to change a cell color Or get search suggestion and latest updates.


Tagged: