J
J. M. De Moor
I have an Access application that pushes a recordset to an Excel
spreadsheet. The Access program calls the Excel function to autofit the
columns:
wks.Columns("A:Q").AutoFit
This works OK, except that one of the columns has a line feed characters in
it. Is there a way to autofit to the width of the column to the line feed
of the longest line in the set, e.g, If the cell has:
Text Foo<LF>Text Foobar<LF>Text Bar
The cell should appear like this:
Text Foo
Text Foobar
Text Bar
with the autofit adjusted to the width of the 2nd line. Is this possible
with Excel VBA?
Joe
spreadsheet. The Access program calls the Excel function to autofit the
columns:
wks.Columns("A:Q").AutoFit
This works OK, except that one of the columns has a line feed characters in
it. Is there a way to autofit to the width of the column to the line feed
of the longest line in the set, e.g, If the cell has:
Text Foo<LF>Text Foobar<LF>Text Bar
The cell should appear like this:
Text Foo
Text Foobar
Text Bar
with the autofit adjusted to the width of the 2nd line. Is this possible
with Excel VBA?
Joe