Results 1 to 15 of 15

VBA; find string and copy

Threaded View

Bill Rudd VBA; find string and copy 01-31-2008, 03:23 AM
royUK You can use an InputBox to... 01-31-2008, 03:44 AM
Bill Rudd thanks! 02-01-2008, 02:55 AM
Bill Rudd good progress, next step? 02-01-2008, 03:54 AM
Bill Rudd Starting from scratch 02-13-2008, 02:49 AM
royUK You can adjust the sheet... 02-13-2008, 05:24 AM
Bill Rudd Great! 02-18-2008, 03:16 AM
Bill Rudd ok now 02-18-2008, 03:44 AM
Bill Rudd quick question 02-20-2008, 10:31 PM
Bill Rudd working 02-26-2008, 08:27 PM
Bill Rudd working (2) 02-26-2008, 08:29 PM
  1. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    You can adjust the sheet numbers & column numbers in this to suit your needs

    Option Explicit
    
    Private Sub Workbook_Open()
        Dim rCopy  As Range
        Dim i      As Integer
        i = 2  'sheet to start from
        Do While i < 6
            With Worksheets(i)
                'copy cells with values in Column A
                Set rCopy = .Columns(1).SpecialCells(xlCellTypeConstants)
                rCopy.Copy Worksheets(3).Cells(Rows.Count, 1).End(xlUp).Offset(1, 0)
            End With
            i = i + 1
        Loop
    End Sub
    Last edited by royUK; 02-13-2008 at 05:52 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1