+ Reply to Thread
Results 1 to 4 of 4

Inputbox to find value in column A,select row and move it under last input in col A.

  1. #1
    Forum Contributor
    Join Date
    10-17-2014
    Location
    EU
    MS-Off Ver
    2013
    Posts
    114

    Inputbox to find value in column A,select row and move it under last input in col A.

    Looking for macro to input the cell value (always column A) into inputbox then it selects the corresponding row, then move selected row under last input in column A.

    Before last input might be blank cells.

    Tried second part with this one, but does not work properly:

    Sub CopySelection()
    Dim xlSel As Excel.Range
    Set xlSel = Excel.Application.Selection
    xlSel.Copy Excel.Application.Cells(Excel.Application.Cells.SpecialCells(xlCellTypeLastCell).Row + 1, 1)

    End Sub

    Many thanks!
    Last edited by Tona; 09-23-2015 at 07:46 AM.

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,381

    Re: Inputbox to find value in column A,select row and move it under last input in col A.

    This will move the rows to the bottom of column A:

    Please Login or Register  to view this content.
    though it can be simplified

    Please Login or Register  to view this content.
    And to ask for a value to find:

    Please Login or Register  to view this content.
    Last edited by Bernie Deitrick; 09-23-2015 at 11:58 AM.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Contributor
    Join Date
    10-17-2014
    Location
    EU
    MS-Off Ver
    2013
    Posts
    114

    Re: Inputbox to find value in column A,select row and move it under last input in col A.

    Thank you Bernie! The last one works wonderful for my needs.

    I appreciate your help!

  4. #4
    Forum Contributor
    Join Date
    10-17-2014
    Location
    EU
    MS-Off Ver
    2013
    Posts
    114

    Re: Inputbox to find value in column A,select row and move it under last input in col A.

    Thank you Bernie! The last one works wonderful for my needs.

    I appreciate your help!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Vba : Find select offset copy and paste
    By Atik in forum Excel General
    Replies: 6
    Last Post: 12-21-2014, 11:38 AM
  2. Replies: 1
    Last Post: 02-12-2014, 05:29 AM
  3. Creating User Input box or Vlookup to select column to copy and paste
    By TiPu1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-15-2013, 03:55 PM
  4. Vba - find next empty column, insert column, copy paste values & copy paste formulas
    By DoodlesMama in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-20-2012, 12:43 PM
  5. find, select, copy paste values
    By gsrai31 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-26-2011, 01:59 PM
  6. Find and Select, Copy and Paste.
    By johnlovesbeer in forum Excel General
    Replies: 7
    Last Post: 07-06-2011, 10:04 PM
  7. Select next column after data input into InputBox
    By Icanthearkinda in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-19-2009, 03:50 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