Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!v25g2000yqk.googlegroups.com!not-for-mail
From: plim <manuela.cotrim@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: write2excel
Date: Fri, 30 Oct 2009 08:32:35 -0700 (PDT)
Organization: http://groups.google.com
Lines: 28
Message-ID: <b5ff1455-26b5-4e10-94b5-25b1a8132b82@v25g2000yqk.googlegroups.com>
References: <hccafs$9e1$1@fred.mathworks.com> <bd524be5-63c1-49bb-9d1c-36353fe99708@g1g2000pra.googlegroups.com>
NNTP-Posting-Host: 195.23.184.235
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1256916755 16718 127.0.0.1 (30 Oct 2009 15:32:35 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 30 Oct 2009 15:32:35 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: v25g2000yqk.googlegroups.com; posting-host=195.23.184.235; 
	posting-account=K0jVXwoAAADXjS2kFZeVNOu1YweNsvCm
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.4) 
	Gecko/20091016 Firefox/3.5.4,gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:581306



Hi NZTideMan,

Do you know a way to get indx automatically from the excel file?

thanks
Plim




On Oct 29, 7:04 pm, NZTideMan <mul...@gmail.com> wrote:
> On Oct 30, 3:57 am, "Teodor " <teodoralexan...@yahoo.com> wrote:
>
> > Hello,
> > I have a textbox and a button. When I write a number into the textbox and push the button, I want to save that value into an excel file.
> > Till this point it is simple, but when I want to write a new value into that box and push again the button to save the new value into the excel file, this new value it will overwrite the old one. I want to put the new value in the next row, below the old value in the excel file.
> > Can enyone help me with this problem?
>
> The way I'd do it is to use the facility in xlswrite to name the cell
> you want to place the data in.  If you want the data to go into column
> A, you would define an index indx=0, then do this:
> indx=indx+1;
> xlswrite(xlsfile,data,sheet,['A' num2str(indx)]