No BSD License  

Highlights from
FastFillGrid

4.5

4.5 | 2 ratings Rate this file 5 Downloads (last 30 days) File Size: 51.22 KB File ID: #8436
image thumbnail

FastFillGrid

by Michael Robbins

 

07 Sep 2005 (Updated 08 Sep 2005)

Populates a grid, i.e. Microsoft Spreadsheet Object, with a cell array.

| Watch this File

File Information
Description

FastFillGrid populates a grid, i.e. Microsoft Spreadsheet Object, with a cell array

Thanks Brett Shoelson, via CSSM

PUTCELLVALUE puts a value in an active cell

fastfillgrid is both a directory and a function.

FastFillGrid populates a grid, i.e. Microsoft Spreadsheet Object, with a cell array

The cell array may contain mixed types.

FastFillGrid(SPREADSHEET,M) populates SPREADSHEET with M

FastFillGrid(SPREADSHEET,M,DOPASTE) usage obsolete

FastFillGrid(SPREADSHEET,M,DOPASTE,DOWAITBAR) also uses a progress indicator if DOWAITBAR is 1 (default), does not if DOWAITBAR is 0

FastFillGrid(SPREADSHEET,M,DOPASTE,DOWAITBAR,MINR,MINC,MAXR,MAXC) specifies the minimum and maximum rows and cloumns to use

FastFillGrid(SPREADSHEET,M,DOPASTE,DOWAITBAR,MINR,MINC,MAXR,MAXC,ASSTR)forces all values to be placed as strings, instead of the default behavior which populates the grid with numbers when possible.

FastFillGrid(SPREADSHEET,M,DOPASTE,DOWAITBAR,MINR,MINC,MAXR,MAXC,ASSTR,AUTOFIT) if AUTOFIT = 1, then FastFillGrid will automatically adjust the columnwidth to fit the widest entry.
 
Example:
        figure;
        spreadsheet = actxcontrol('OWC11.Spreadsheet.11',[0 0 200 200]);
        M = {'abc', 123; 12.17, logical(1)};
        FastFillGrid(spreadsheet,M);
 
  IT'S NOT FANCY, BUT IT WORKS
 
     See also Graph_and_Table, QuestDlgWithGrid, SearchAndReplaceMany, SpreadSheet, DatabaseEditingTool, DuplicateFileFinder,PutCellValue, nn2an, FillGrid, xlsread xlswrite xlsinfo
 
     Keywords: grid spreadsheet ActiveX Active-X Active X GUI Table graph_and_table plot graph table grid object flexgrid msflexgrid ocx tabular xlsread xlswrite

MATLAB release MATLAB 7.0.4 (R14SP2)
Other requirements Microsoft Excel
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
25 Jan 2007 dave holden

Found a few bugs,
% MaxR = min(L,MaxR); % orginal from Author
% MaxC = min(W,MaxC);
MaxR = min(L,MaxR) + MinR -1; % fix
MaxC = min(W,MaxC) + MinC -1;

01 Mar 2007 Yaser Norouzi

There is a minor error in this program,

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
gui tools Michael Robbins 22 Oct 2008 07:59:31
example Michael Robbins 22 Oct 2008 07:59:31
grid Michael Robbins 22 Oct 2008 07:59:31
spreadsheet Michael Robbins 22 Oct 2008 07:59:31
activex Michael Robbins 22 Oct 2008 07:59:31
active x Michael Robbins 22 Oct 2008 07:59:31
gui Michael Robbins 22 Oct 2008 07:59:31
table Michael Robbins 22 Oct 2008 07:59:31

Contact us at files@mathworks.com