Results 1 to 5 of 5

Activating the next column cell from the last active cell

Threaded View

  1. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Maybe

    Dim FndCell As Range
    Dim FndWrd As String
    Dim LastRow As Long
    
    FndWrd = Application.InputBox("Enter item to find!!", "Find!", , , , , , 2)
    LastRow = Cells(Rows.Count, "H").End(xlUp).Row
    Set FndCell = Range("A1:BP1").Find(FndWrd, lookat:=xlWhole, LookIn:=xlValues)
        If Not FndCell Is Nothing Then
            Range(FndCell.Address, Cells(LastRow, FndCell.Column)).Copy _
            Destination:=Sheets("Sheet2").Cells(Rows.Count, "A").End(xlUp).Offset(1)
        End If
    Change the inputbox to your code for the form

    VBA Noob
    Last edited by VBA Noob; 08-18-2008 at 05:59 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro for coding an action based on 3 columns of information
    By chozen86 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-31-2008, 10:44 PM
  2. Inserting a Column - Sometimes Works, Sometimes Not
    By teddybouch in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-11-2008, 06:52 PM
  3. Insert Active Formula in Excel Cell with VBA
    By trex46 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-04-2008, 11:44 AM
  4. using cell content to reference a worksheet tab name in second workbook
    By Conor in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-29-2007, 09:32 AM
  5. Replies: 3
    Last Post: 03-06-2007, 08:27 PM

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