View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Derek Hart Derek Hart is offline
external usenet poster
 
Posts: 26
Default A Little More Advanced Range Fill-In

I have this function:

myKey = Key()
Selection.Value = myKey

If the user highlights a range, a specific value is filled into every single
cell highlighted. I want to do this a little better. If the user
highlights several rows and columns, I want the myKey to only fill in if the
column header (Row 1 value) is "Key" - is this possible in VBA?