View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
JAbels001 JAbels001 is offline
external usenet poster
 
Posts: 28
Default Writing a macro to hide columns based on cell value

I'm trying to write a macro that will automatically hide certain columns
based on a cell's value. Basically, if C3 = "Sales" I need columns R, S, and
T to be hiden; however if C3 does not equal "Sales" i need columns L, M and N
to be hiden, but R, S, and T need to come back into view and vice versa. Is
there a macro that can assist me? Please help. Thanks!