sponsored ads
sponsored ads
In Microsoft excel, as you fill out data into each cell, it does not always auto expand to fit your selection.
In the screen shot we give an example of above.
As you can see with it spread out it does not fit into the cell.
This can become, frustrating for both the user entering the data, and the person who needs to read it.
There is actually quite a simple solution to this.
in the upper left hand corner of excel. (Screenshot Attached)
Left Click, in the screenshot the line in the upper left represents where to click. This will highlight the complete sheet you are on.
To the left of "A" and above the number "1"
Once you have left clicked and the complete sheet, has been highlighted, you will move to the next step. Which is to edit the column width
To edit the column width, you will want to go to the Format menu, in 2003, inn 2007 it is on the Home tab to the right as the screenshot indicates.
Once you have the format menu up select, Auto Fit Column width.
Image attached indicates this selection.
Once complete your sheet will change. It will now take the information it the cells, and expand the cells so the information will fit.
Compare this image to the first image
0
Well, you can do the following:
Excel.Range xlEntireColumn = null;
Excel.Range xlRange = null;
while (reader.Read()) {
for (int i=0;i<numcols;i++) {
xlsheet.ActiveSheet.Cells[row,i+1] = reader.GetValue(i).ToString();
xlRange = xlSheet.ActiveSheet.Cells[row, i+1];
xlEntireColumn = xlRange.EntireColumn;
xlEntireColumn.AutoFit();
}
Hope this helps.
Answered Jul, 13 2010
0
There two method I'm aware of
(1) Drag the column large enough so you can see the whole text, but then this look weird
(2) Cell merging, because you merge it, then it become 1 cell.
To do this highlight all the cell you want to merge. Right click. Left click Format Cells...
Left click Alignment
Left click Merge Cells
Left click OK
This is based on Excel 2007, so it might be slightly different but should be similar.
Answered Sep, 24 2010
0
Search for Related Topics
excel 2010 vba cell word width word 2010 automatically scale picture fit cell phpexcel sized fit cell jasper fit cell excel vbscript excel cell fit word automate widest fit cell word 2010 portable word excel 2010 listview textbox fit cell fit gaussien histogramme excel 2010 word 2010 excel freeze sides break word table excel 2010 excel 2010 resize picture fit cell
Related Unresolved Questions
sponsored ads
1400 code error solve 7 beep c# sound windows addons ie8 switch 2010 create master powerpoint slide pixellive viewer avi mpg emma nipslip rigby
Continue to downloadPower by Afreecodec.com