ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   stretching cells (https://www.excelbanter.com/excel-programming/287743-stretching-cells.html)

libby

stretching cells
 
Hi
I have a workbook with two sheets.
Sheet1 has a range of cells A1:A6 which the user inputs
information into.

When they click a button on the sheet, the information in
each of cells in the range on sheet1 is copied into one
cell (A1) on sheet2.

I've managed to get a space between each of the cells by
using Chr(10), but my question is, how do I get the cell
on Sheet2 to display all the text in it - I'd like it to
keep expanding and not to close up when it loses focus.

Many thanks

Pete McCosh[_8_]

stretching cells
 
Libby,

after you have transferred the cells, add the line:

Sheets("sheet2").columns(1).autofit

Pete

-----Original Message-----
Hi
I have a workbook with two sheets.
Sheet1 has a range of cells A1:A6 which the user inputs
information into.

When they click a button on the sheet, the information in
each of cells in the range on sheet1 is copied into one
cell (A1) on sheet2.

I've managed to get a space between each of the cells by
using Chr(10), but my question is, how do I get the cell
on Sheet2 to display all the text in it - I'd like it to
keep expanding and not to close up when it loses focus.

Many thanks
.


libby

thanks pete
 

-----Original Message-----
Libby,

after you have transferred the cells, add the line:

Sheets("sheet2").columns(1).autofit

Pete

-----Original Message-----
Hi
I have a workbook with two sheets.
Sheet1 has a range of cells A1:A6 which the user inputs
information into.

When they click a button on the sheet, the information

in
each of cells in the range on sheet1 is copied into one
cell (A1) on sheet2.

I've managed to get a space between each of the cells by
using Chr(10), but my question is, how do I get the cell
on Sheet2 to display all the text in it - I'd like it to
keep expanding and not to close up when it loses focus.

Many thanks
.

.



All times are GMT +1. The time now is 08:35 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com