Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I need to copy a cell from a sheet set up to input information(Input) to
another sheet that is set up as a letter template(Template) The problem I am having is, sometimes the cell contains about a paragraph of information, other times it could only contain a few words. Is it possible to automatically change the size of the cell on the Template sheet to match the size of the cell on the Input sheet. Also, since it will be printed, is it possible to wrap the cell to the next row when it reaches the set print area(or a designated cell)? Thanks, Josh *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Declare and set object references to both the cell on the Input worksheet
and the Template worksheet, then try the following code: With rngTemplateCell .Value = rngInputCell.Value 'Copy the value to the new cell. .WrapText = rngInputCell.WrapText .ColumnWidth = rngInputCell.ColumnWidth 'If the cell formats (font sizes) are the same, use this: .RowHeight = rngInputCell.RowHeight 'Otherwise, use the following to autofit the row height. .EntireRow.AutoFit End With -- Regards, Bill "Josh" wrote in message ... I need to copy a cell from a sheet set up to input information(Input) to another sheet that is set up as a letter template(Template) The problem I am having is, sometimes the cell contains about a paragraph of information, other times it could only contain a few words. Is it possible to automatically change the size of the cell on the Template sheet to match the size of the cell on the Input sheet. Also, since it will be printed, is it possible to wrap the cell to the next row when it reaches the set print area(or a designated cell)? Thanks, Josh *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy worksheet1 to worksheet2, keep cell format eg cell size | Excel Discussion (Misc queries) | |||
Cell Format - Field Size | Excel Discussion (Misc queries) | |||
conditional format: affected by cell size | Excel Discussion (Misc queries) | |||
Format cell window size | Excel Worksheet Functions | |||
How to sent for cell: font size=7,text format in VBA | Excel Discussion (Misc queries) |