Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / February 2007

Tip: Looking for answers? Try searching our database.

Formulas for multiple functions

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jerry Foley - 19 Feb 2007 21:54 GMT
I have a rather large multisheet workbook. I want to write a formula or macro
that will search the "A" column in each worksheet. If there is a number in
the column I want to copy the entire row to a different worksheet. This is
above my head and any support will be appreciated.

Jerry
Tom Ogilvy - 19 Feb 2007 22:03 GMT
http://www.rondebruin.nl/copy5.htm

would be a start.

Signature

Regards,
Tom Ogilvy

> I have a rather large multisheet workbook. I want to write a formula or macro
> that will search the "A" column in each worksheet. If there is a number in
> the column I want to copy the entire row to a different worksheet. This is
> above my head and any support will be appreciated.
>
> Jerry
Jason - 19 Feb 2007 22:18 GMT
Here is one way.

The following assumes that you will search all worksheets except for Sheet2,
since this is the sheet where the rows will be pasted. So be sure to change
the name of "Sheet2" to the sheet to which you would like to paste.

Sub numbers()

Dim ws As Worksheet, cell As Range, rng As Range

For Each ws In ThisWorkbook.Worksheets
   If Not ws.Name = "Sheet2" Then
       For Each cell In ws.Range("A1:A" & ws.Range("A65536").End(xlUp).Row)
           If IsNumeric(cell) = True Then
               cell.EntireRow.Copy _
                   Sheets("Sheet2").Range("A65536").End(xlUp).Offset(1, 0)
           End If
       Next cell
   End If
Next ws

End Sub

HTH,
Jason

> I have a rather large multisheet workbook. I want to write a formula or macro
> that will search the "A" column in each worksheet. If there is a number in
> the column I want to copy the entire row to a different worksheet. This is
> above my head and any support will be appreciated.
>
> Jerry
Jerry Foley - 19 Feb 2007 23:33 GMT
Thanks for the help. Pardon my ignorance but how do I get this actually intot
he spreadsheet?
Jerry

> Here is one way.
>
[quoted text clipped - 28 lines]
> >
> > Jerry
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.