Re: $$Excel-Macros$$ problem with duplication of data

2011-09-08 Thread Shankar Bheema
I tried with this code. But it is not stopping the entry of the duplicate row with the same file number. file numbers may be given consequently 1,2,3 ., if we enter file number 1 for twice, it would fire msgbox that it already exists. pls provide solution On Wed, Sep 7, 2011 at 8:03 PM, m

Re: $$Excel-Macros$$ problem with duplication of data

2011-09-07 Thread Shankar Bheema
thank you so much saber On Wed, Sep 7, 2011 at 8:03 PM, mohd saber wrote: > Hi Shankar, > > Please find the below updated data for the command file > > Private Sub CommandButton1_Click() > ActiveWorkbook.Sheets("Employee Details").Activate > Range("A1").Select > Do > >If IsEmpty(ActiveCell)

Re: $$Excel-Macros$$ problem with duplication of data

2011-09-07 Thread mohd saber
Hi Shankar, Please find the below updated data for the command file Private Sub CommandButton1_Click() ActiveWorkbook.Sheets("Employee Details").Activate Range("A1").Select Do If IsEmpty(ActiveCell) = False Then If activecell.value = txtfileno.value Then ActiveCell.Offset(0, 1) = txtname.Te

$$Excel-Macros$$ problem with duplication of data

2011-09-07 Thread Bheema Shankar
I placed the following objects on my VBA excel TextBoxes a) file no b) Name Command buttons a) Save b) Update In save button I have given code as@@@ Private Sub CommandButton1_Click() ActiveWorkbook.Sheets("Employee Details").Activate Range("A1").Select Do If IsEmpty