vba - Excel: Center across selection with cells containing nothing (as in "") but formulas -


i building list in excel. user can fill 10 lines per kpi multiple kpis. width fixed 8 columns. afterwards, extract same list without empty lines sheet (w/o vba). , export ppt ole object via vba. problem is: kpi title cannot read because cut off when cell ends though next cell visibly empty (only formula in there enters "" empty cells) , center across selection activated.

i somehow need make kpi name visible (preferably without vba).

note: adding in front of each line not feasible due width limitations imposed through slides' size. copy , paste special of ole data did not work. input

selection without empty rows. problem cell a3 example

without vba, not sure how that. perhaps find/replace on formula, find formulas don't equate "".

if want clear such cells, sub may work. change range required range:

sub remove_empty_formula() dim rng range, cel range set rng = range("b1:b10")  each cel in rng     if worksheetfunction.isformula(cel) , cel.value = "" , cel.offset(0, -1).value <> ""         cel.clearcontents     end if next cel end sub 

Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -