+ Reply to Thread
Results 1 to 6 of 6

place searchresult active row (sheet1) on sheet "Rest"

  1. #1
    Registered User
    Join Date
    02-20-2013
    Location
    Amsterdam, Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    70

    place searchresult active row (sheet1) on sheet "Rest"

    fellow members,

    I have a slight snag in my code or my reasoning (or else i don't see it)

    Please Login or Register  to view this content.
    this places the result of a collumn A (sheet1) in the second sheet called Rest.
    But now i want the result of the compleet row(from sheet1) in sheet "Rest"

    I have been experimenting with
    Rows(ActiveCell.Row).Select
    Selection.Copy


    but i don't get de result i want.

    What am i missing?
    Last edited by blake20; 07-26-2017 at 03:33 AM. Reason: faulty grammar

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,122

    Re: place searchresult active row (sheet1) on sheet "Rest"

    Hi blake20
    Perhaps...

    Please Login or Register  to view this content.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: place searchresult active row (sheet1) on sheet "Rest"

    Maybe best to post example file with before and after sheet because I can't follow your logic of what comes from where.
    Try to explain clearly of what you're trying to achieve.
    Also use Resize to expand the range to be copied instead of EntireRow (probably no need to copy ALL columns)
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,122

    Re: place searchresult active row (sheet1) on sheet "Rest"

    Also use Resize to expand the range to be copied instead of EntireRow (probably no need to copy ALL columns)
    Very true...

  5. #5
    Registered User
    Join Date
    02-20-2013
    Location
    Amsterdam, Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    70

    Re: place searchresult active row (sheet1) on sheet "Rest"

    sintek thank you it works perfectly.

    it was staring me in the face but i did not see it. (happens a lot).



    Also bakerman2 again thanx for you contribution.

  6. #6
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,122

    Re: place searchresult active row (sheet1) on sheet "Rest"

    Pleasure...Thanks for Rep +

+ 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] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  2. [SOLVED] Link excel file to workbook "=IF(ISBLANK('Sheet1!A1),"",'Sheet1!A1) " is this reliable?
    By bala04msw in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-29-2016, 05:39 AM
  3. [QUESTION/HELP-VBA/MACROS]Auto Edit Link from "Sheet1" to "Sheet2"
    By iphone3g in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 08-24-2016, 02:49 AM
  4. [SOLVED] If there is any text in column "A$" on "sheet1" then move cell to column "A$" on "sheet2"
    By ckgeary in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-27-2013, 08:28 PM
  5. [SOLVED] Macro to look up and down from the active cell, copying the active "section" of the sheet
    By mikkola in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-12-2013, 07:21 PM
  6. Use fill form to place data on a specific sheet without "acitvating" the sheet...
    By Skinny Slim in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-08-2012, 07:38 PM
  7. use variable in Workbooks("book1").Worksheets("sheet1").Range("a1"
    By Luc in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-28-2005, 04:05 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