+ Reply to Thread
Results 1 to 5 of 5

macro to find cells & copy to another sheet

  1. #1
    Registered User
    Join Date
    10-01-2013
    Location
    san francisco
    MS-Off Ver
    Excel 2013
    Posts
    47

    macro to find cells & copy to another sheet

    i would like create a button that when pressed copies specified values from column B, sheet B (i will pick 20 out of maybe ~30 cells) to the latest open row on destination Sheet A starting in column G. i would like to specify by the value in column A of the source sheet B, and return the value from column B. i am using excel 2013.

    example: search for 'Units sold USA' in Sheet B is found in A15, return the value of B15 onto Sheet A first blank row after row 20 in column G. repeat for about 20 more pieces of data.

    after searching, there seem to be many VBA ways to search for the last used row on a sheet or in a range. i really don't have the experience to know which is the best approach. i'm looking for a straightforward but fairly robust solution that a newbie might learn from & understand. thank you.

    example source data on source sheet B, starting at cell B12:
    82
    82
    0
    0

    82
    82
    0
    28
    21
    21
    0
    -4
    -3
    -3
    0
    28
    -4
    1.2764
    1.2744
    0

    6
    100.00%
    6
    0
    0
    6

    14
    14
    0
    0

    22
    0
    26.83%
    0.00%

    6
    0

    34:04:00
    34:04:00
    0:00
    1:10:39
    0:00

    12
    12
    0

    2
    2
    0
    0

    14

    0
    0
    0
    0
    0
    82

  2. #2
    Forum Contributor
    Join Date
    12-29-2014
    Location
    Indonesia
    MS-Off Ver
    Office 2010, 2013
    Posts
    125

    Re: macro to find cells & copy to another sheet

    Hi djarum11,

    would you to insert the sample workbook for your question, perhaps someone can reply fastly. thankyou

  3. #3
    Registered User
    Join Date
    10-01-2013
    Location
    san francisco
    MS-Off Ver
    Excel 2013
    Posts
    47

    Re: macro to find cells & copy to another sheet

    it's proprietary information. thanks anyway.

  4. #4
    Registered User
    Join Date
    01-21-2014
    Location
    Lakeland, Florida
    MS-Off Ver
    2013
    Posts
    23

    Re: macro to find cells & copy to another sheet

    Dim whatever as range
    Set whatever = range("b:b").find(what:="whatever")
    Whatever.select

    Or
    Range("b:b").find(what:="whatever").select

  5. #5
    Registered User
    Join Date
    10-01-2013
    Location
    san francisco
    MS-Off Ver
    Excel 2013
    Posts
    47

    Re: macro to find cells & copy to another sheet

    i am very good with formulas but i'm sorry i don't understand VBA much at all. i would need more details

    also, finding the last row for pasting into: i have a cell that specifies this, so for the correct paste row it just needs to reference this cell. let's call this cell D5

+ 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] Find value in a cell in different sheets and copy and paste other cells to another sheet
    By the-hawk in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-04-2013, 03:36 AM
  2. Find value in cells in other sheet and the copy the informations back
    By esbenhaugaard in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-29-2012, 07:30 PM
  3. [SOLVED] Need help with macro that will FIND, COPY & PAste to different sheet :)
    By MeloReese in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-13-2012, 08:03 AM
  4. VBA macro to Find a dynamic range of cells, copy then paste to another sheet
    By Bmxerdude2087 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-24-2012, 02:36 PM
  5. Macro to find the value and copy the entire row to another sheet
    By pike in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-03-2011, 07:00 AM

Tags for this Thread

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