Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Kuhaylah Malik   on Nov 12 In MS Office Category.

  
Question Answered By: Hababah Younis   on Nov 12

You've written a function, not a macro; you need to call it from a
macro, or use it as a spreadsheet function  in a cell:

run this macro  to test:
Sub blah()
MsgBox CellColorIndex(Range("A1"))
End Sub

(If you want to step through it, put a breakpoint within the function
at, say, the line 'Application.Volatile True' and run the 'blah'
macro, then press F8 repeatedly to step through the function.)

in the worksheet:
=CellColorIndex(A1)

Share: 

 

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

 
Didn't find what you were looking for? Find more on can't compile Sub with Parameters Or get search suggestion and latest updates.


Tagged: