Excel VBA to unhide column and add column row to merged range -


i have macro unhides column based on date in row 4.

for each c in range("a4:cu4").cells     if c.value = strlastpp         c.entirecolumn.offset(0, 1).hidden = false      end if next c 

this code works fine.

however, need when column unhidden add merged & centered range h3:p3 , each time run macro want keep adding newly unhidden column merged range dynamically.

ideas?


Comments

Popular posts from this blog

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -