Re: $$Excel-Macros$$ A small query, need your help in vba coding.

2011-06-16 Thread kannan excel
011 09:03:35 +0530 > Subject: Fwd: $$Excel-Macros$$ A small query, need your help in vba coding. > From: kannan.ex...@gmail.com > > To: excel-macros@googlegroups.com > > Hi Guru > > Anybody give a sample excel > i try this code. but its not working. help me. i want

Re: $$Excel-Macros$$ A small query, need your help in vba coding.

2011-05-07 Thread STDEV(i)
Your code looks like to be run in excel 2003 only (1) In both excel 2003 / excel 2007 Range("A65000") ' last row in A column can be coded as Cells(*Rows.Count*,1) or Range("A" & *Rows.Count*) (2) *Value* property of a Range Object is a *DEFAULT Property* so you can ignore it For example Range

Re: $$Excel-Macros$$ A small query, need your help in vba coding.

2011-05-07 Thread Indrajit $nai
Thanks a lot to all of you. -- Indrajit -- -- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linked

Re: $$Excel-Macros$$ A small query, need your help in vba coding.

2011-05-07 Thread NAJEEB JAFRI
When copying excel files, the following problems: PROBLEM 1 1). The settings of the Margins are getting disturbed PROBLEM 2 Also when you take a print out, the @age of the page fluctuates Do you or your friends have any solution Please revert Thanks & regards On 5/7/11, STDEV(i) wrote: >

Re: $$Excel-Macros$$ A small query, need your help in vba coding.

2011-05-07 Thread rajan verma
Private Sub CommandButton1_Click() Range("A65000").End(xlUp).Cells(2, 1) = Range("C1").Value: Range("A65000").End(xlUp).Cells(1, 2) = Range("D1").Value: End Sub On Sat, May 7, 2011 at 1:56 AM, Indrajit $nai wrote: > Hi All, > > I have a little query in vba coding, please see the attached file.

Re: $$Excel-Macros$$ A small query, need your help in vba coding.

2011-05-06 Thread STDEV(i)
just a little modif: Private Sub CommandButton1_Click() Dim R As Long * R = Cells(Rows.Count, 1).End(xlUp).Row + 1* Cells(R, 1) = Cells(1, 3) Cells(R, 2) = Cells(1, 4) End Sub On Sat, May 7, 2011 at 11:38 AM, rajan verma wrote: > It macro will not work properly if these is any blan

Re: $$Excel-Macros$$ A small query, need your help in vba coding.

2011-05-06 Thread rajan verma
It macro will not work properly if these is any blank row between the Data.. It will all time replace existing Data.. On Sat, May 7, 2011 at 8:56 AM, STDEV(i) wrote: > Dear Indrajit > please try this code > > Private Sub CommandButton1_Click() >' siti Vi / jakarta, May 07, 2011 >Dim R As

Re: $$Excel-Macros$$ A small query, need your help in vba coding.

2011-05-06 Thread STDEV(i)
Dear Indrajit please try this code Private Sub CommandButton1_Click() ' siti Vi / jakarta, May 07, 2011 Dim R As Long R = WorksheetFunction.CountA(Range("A:A")) + 1 Cells(R, 1) = Cells(1, 3) Cells(R, 2) = Cells(1, 4) End Sub On Sat, May 7, 2011 at 3:26 AM, Indrajit $nai wrote: >

Re: $$Excel-Macros$$ A small query, need your help in vba coding.

2011-05-06 Thread ashish koul
try this Private Sub CommandButton1_Click() Range("C1:D1").Select Selection.Copy Range("A65356").End(xlUp).Offset(1, 0).Select ActiveSheet.Paste Application.CutCopyMode = False End Sub On Sat, May 7, 2011 at 1:56 AM, Indrajit $nai wrote: > Hi All, > > I have a little query

$$Excel-Macros$$ A small query, need your help in vba coding.

2011-05-06 Thread Indrajit $nai
Hi All, I have a little query in vba coding, please see the attached file. In the excel file there is a "Save" command button, whenever I press the button it will copy the data from cell no. c1:d1 and paste in the cell a1:b1, now my query is, if the data is already in the cell no. a1:b1 it will be