Re: $$Excel-Macros$$ Macro Help in Excel 2007?

2011-04-16 Thread Prabhu.K.
Hi ashish,

Is there any way to keep common code for all sheet?

Because i may have to use this code on various sheet on many time.



On Sat, Apr 16, 2011 at 11:35 AM, ashish koul  wrote:

> change
>
> Sheets(1)
>
> as per your requirement
>
> activesheet or Sheets(" name of sheet")
>
>
>
> On Fri, Apr 15, 2011 at 11:57 PM, Prabhu  wrote:
>
>> Hi Ashish,
>>
>> Thanks, But when i run the macro i had an issue
>>
>> 1) It is woking only on the Sheet 1 only not other sheet
>>
>> 2) I want to use this code with other macro as a Continuation Plz help
>> from which line i have to copy to my exising macro code.
>>
>> Regards,
>>
>> Prabhu
>>
>> --
>>
>> --
>> 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.linkedin.com/groups?gid=1871310
>> 3. Excel tutorials at http://www.excel-macros.blogspot.com
>> 4. Learn VBA Macros at http://www.quickvba.blogspot.com
>> 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
>>
>> To post to this group, send email to excel-macros@googlegroups.com
>>
>> <><><><><><><><><><><><><><><><><><><><><><>
>> Like our page on facebook , Just follow below link
>> http://www.facebook.com/discussexcel
>>
>
>
>
> --
> *Regards*
> * *
> *Ashish Koul*
> *akoul*.*blogspot*.com 
> *akoul*.wordpress.com 
> My Linkedin Profile 
>
>
> P Before printing, think about the environment.
>
>
>  --
>
> --
> 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.linkedin.com/groups?gid=1871310
> 3. Excel tutorials at http://www.excel-macros.blogspot.com
> 4. Learn VBA Macros at http://www.quickvba.blogspot.com
> 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
>
> To post to this group, send email to excel-macros@googlegroups.com
>
> <><><><><><><><><><><><><><><><><><><><><><>
> Like our page on facebook , Just follow below link
> http://www.facebook.com/discussexcel
>

-- 
--
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.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 
To post to this group, send email to excel-macros@googlegroups.com

<><><><><><><><><><><><><><><><><><><><><><>
Like our page on facebook , Just follow below link
http://www.facebook.com/discussexcel


Re: $$Excel-Macros$$ Macro Help in Excel 2007?

2011-04-15 Thread ashish koul
change

Sheets(1)

as per your requirement

activesheet or Sheets(" name of sheet")



On Fri, Apr 15, 2011 at 11:57 PM, Prabhu  wrote:

> Hi Ashish,
>
> Thanks, But when i run the macro i had an issue
>
> 1) It is woking only on the Sheet 1 only not other sheet
>
> 2) I want to use this code with other macro as a Continuation Plz help
> from which line i have to copy to my exising macro code.
>
> Regards,
>
> Prabhu
>
> --
>
> --
> 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.linkedin.com/groups?gid=1871310
> 3. Excel tutorials at http://www.excel-macros.blogspot.com
> 4. Learn VBA Macros at http://www.quickvba.blogspot.com
> 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
>
> To post to this group, send email to excel-macros@googlegroups.com
>
> <><><><><><><><><><><><><><><><><><><><><><>
> Like our page on facebook , Just follow below link
> http://www.facebook.com/discussexcel
>



-- 
*Regards*
* *
*Ashish Koul*
*akoul*.*blogspot*.com 
*akoul*.wordpress.com 
My Linkedin Profile 


P Before printing, think about the environment.

-- 
--
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.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 
To post to this group, send email to excel-macros@googlegroups.com

<><><><><><><><><><><><><><><><><><><><><><>
Like our page on facebook , Just follow below link
http://www.facebook.com/discussexcel


Re: $$Excel-Macros$$ Macro Help in Excel 2007?

2011-04-15 Thread Prabhu
Hi Ashish,
 
Thanks, But when i run the macro i had an issue
 
1) It is woking only on the Sheet 1 only not other sheet
 
2) I want to use this code with other macro as a Continuation Plz help from 
which line i have to copy to my exising macro code.
 
Regards,
 
Prabhu

-- 
--
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.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 
To post to this group, send email to excel-macros@googlegroups.com

<><><><><><><><><><><><><><><><><><><><><><>
Like our page on facebook , Just follow below link
http://www.facebook.com/discussexcel


Re: $$Excel-Macros$$ Macro Help in Excel 2007?

2011-04-15 Thread Paul Schreiner
Why "at one time"?
I don't think you're going to get that...

But if you use:

Option Explicit
Sub Del_Rows()
    Dim rCnt, R
    Sheets("Data").Select
    Range("A1").Select
    Application.ScreenUpdating = False
    rCnt = ActiveCell.SpecialCells(xlLastCell).Row
    For R = rCnt To 1 Step -1
    If (R Mod 1000 = 0) Then Application.StatusBar = R
    If (IsError(Cells(R, "G").Value)) Then
    Cells(R, 1).EntireRow.Delete
    End If
    Next R
    Application.ScreenUpdating = True
    Application.StatusBar = False
End Sub

I processed 3,000 records (and removed 1,000)
in about 30 seconds

Paul S

 


From: Prabhu 
To: excel-macros@googlegroups.com
Sent: Fri, April 15, 2011 6:29:18 AM
Subject: $$Excel-Macros$$ Macro Help in Excel 2007?

Macro Help in Excel 2007?

I want to delete particular rows only in my work sheet which contains #N/A in a 
particular column?

Assuming the column containing the #N/A errors is column A, and i need to 
delete 
the entire row where '#N/A' if found in column A.

Plz help with macro code which should delete enter #N/A at one time not line by 
line.

Regards,

Prabhu-- 
--

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.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com

To post to this group, send email to excel-macros@googlegroups.com
 
<><><><><><><><><><><><><><><><><><><><><><>
Like our page on facebook , Just follow below link
http://www.facebook.com/discussexcel

-- 
--
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.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 
To post to this group, send email to excel-macros@googlegroups.com

<><><><><><><><><><><><><><><><><><><><><><>
Like our page on facebook , Just follow below link
http://www.facebook.com/discussexcel


Re: $$Excel-Macros$$ Macro Help in Excel 2007?

2011-04-15 Thread ashish koul
try this code

assuming you have data in col a to col c and you want to delete all records
with #n/a in col C



Sub TEST()
Application.Calculation = xlCalculationManual
Application.ScreenUpdating = False


If Sheets(1).FilterMode Then
Sheets(1).ShowAllData
End If
Sheets(1).Range("A1:C" & Range("A1").End(xlDown).Row).AutoFilter Field:=3,
Criteria1:="#N/A"
Sheets(1).Range("A2:C" &
Range("A1").End(xlDown).Row).SpecialCells(xlCellTypeVisible).EntireRow.Delete
If Sheets(1).FilterMode Then
Sheets(1).ShowAllData
End If
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True


End Sub


On Fri, Apr 15, 2011 at 3:59 PM, Prabhu  wrote:

> Macro Help in Excel 2007?
>
> I want to delete particular rows only in my work sheet which contains #N/A
> in a particular column?
>
> Assuming the column containing the #N/A errors is column A, and i need to
> delete the entire row where '#N/A' if found in column A.
>
> Plz help with macro code which should delete enter #N/A at one time not
> line by line.
>
> Regards,
>
> Prabhu
>
> --
>
> --
> 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.linkedin.com/groups?gid=1871310
> 3. Excel tutorials at http://www.excel-macros.blogspot.com
> 4. Learn VBA Macros at http://www.quickvba.blogspot.com
> 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
>
> To post to this group, send email to excel-macros@googlegroups.com
>
> <><><><><><><><><><><><><><><><><><><><><><>
> Like our page on facebook , Just follow below link
> http://www.facebook.com/discussexcel
>



-- 
*Regards*
* *
*Ashish Koul*
*akoul*.*blogspot*.com 
*akoul*.wordpress.com 
My Linkedin Profile 


P Before printing, think about the environment.

-- 
--
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.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 
To post to this group, send email to excel-macros@googlegroups.com

<><><><><><><><><><><><><><><><><><><><><><>
Like our page on facebook , Just follow below link
http://www.facebook.com/discussexcel


$$Excel-Macros$$ Macro Help in Excel 2007?

2011-04-15 Thread Prabhu
Macro Help in Excel 2007?

I want to delete particular rows only in my work sheet which contains #N/A 
in a particular column?

Assuming the column containing the #N/A errors is column A, and i need to 
delete the entire row where '#N/A' if found in column A.

Plz help with macro code which should delete enter #N/A at one time not line 
by line.

Regards,

Prabhu

-- 
--
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.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 
To post to this group, send email to excel-macros@googlegroups.com

<><><><><><><><><><><><><><><><><><><><><><>
Like our page on facebook , Just follow below link
http://www.facebook.com/discussexcel