excel - Row Autosize containing carriage-returned data -


i've been working on doing simple import vba command bring in data excel sheet, containing data reporting tool use. data has been outputted in such way 1 cell contains multiline text, if had written using alt+enter carriage return.

i've tried autosize these rows have data show, when autosizes 1 row of text only. there way can autosize work multiline text, preferably through vba?

i have tried code before use autosize, hasn't worked due issue stated before autosize makes 1 line

for counter = 1 entries      rows(counter).entirerow.autofit  next 

edit: should mention cell in question needs autofit merged cell, , text wrapped. apologies not including prior.

if cells contain long text, using rows(counter).entirerow.autofit not able show text. need set width of columns max before using code:

    columns("a:aa").columnwidth = 200  'depends on possible max width , columns     columns("a:aa").entirecolumn.autofit      counter = 1 entries         rows(counter).entirerow.autofit     next 

Comments

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -