+ Reply to Thread
Results 1 to 7 of 7

Finding values greater than zero and copying to another sheet

  1. #1
    Forum Contributor
    Join Date
    09-09-2013
    Location
    California, USA
    MS-Off Ver
    MS 365 Subscription
    Posts
    130

    Finding values greater than zero and copying to another sheet

    Please Login or Register  to view this content.
    I have got help on this code from a fellow user. In the file I have attached, this code works great taking information that has a value greater than zero from Sheet2 and putting it onto Sheet3. I tried to use this code to take information from Sheet1 from different cells than Sheet2 and also put it onto Sheet3, but I can not get the code to do anything. If anyone is familiar with this code, could you please explain what each line is doing. I can not seem to understand how it is working.

    Thank you

    Example.xlsm

  2. #2
    Forum Contributor
    Join Date
    09-09-2013
    Location
    California, USA
    MS-Off Ver
    MS 365 Subscription
    Posts
    130

    Re: Finding values greater than zero and copying to another sheet

    [QUOTE=pasqualebaldi;3694959]
    Please Login or Register  to view this content.
    I had forgot to changed "Sheet2" to "Sheet1", but the problem still exists.

  3. #3
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Finding values greater than zero and copying to another sheet

    Here is how I would approach it

    Please Login or Register  to view this content.
    Last edited by stnkynts; 05-13-2014 at 12:25 PM.

  4. #4
    Forum Contributor
    Join Date
    09-09-2013
    Location
    California, USA
    MS-Off Ver
    MS 365 Subscription
    Posts
    130

    Re: Finding values greater than zero and copying to another sheet

    Quote Originally Posted by stnkynts View Post
    Here is how I would approach it

    Please Login or Register  to view this content.
    I think I can make this work much better. Is there a way to limit the range it is looking in? For example, With ws1, it looks in .Range("F7:F"... Is there a way to make it only look from "F7:F106"?

    Thank you for your time

  5. #5
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Finding values greater than zero and copying to another sheet

    Yup. You would just say something like this:

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    09-09-2013
    Location
    California, USA
    MS-Off Ver
    MS 365 Subscription
    Posts
    130

    Re: Finding values greater than zero and copying to another sheet

    Quote Originally Posted by stnkynts View Post
    Yup. You would just say something like this:

    Please Login or Register  to view this content.
    I did not get a chance to say thank you for your help earlier. The code is working great for me!

    Thanks

  7. #7
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Finding values greater than zero and copying to another sheet

    Glad is it working for you. If you get a chance please mark this thread as solved and feel free to give me rep (star on bottom left of post) if you feel I deserve it.

+ 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. Finding Next sheet for copying data
    By Liju144 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-16-2013, 08:05 AM
  2. [SOLVED] Finding matching cells in 2 different workbooks and copying cell values
    By lavinius in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-01-2013, 11:59 AM
  3. Replies: 0
    Last Post: 08-18-2012, 03:06 AM
  4. [SOLVED] Macro for Finding Sheet Names, then Copying/Pasting Values
    By Joel.Nemec in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-09-2012, 01:28 PM
  5. Finding and copying data from one sheet to another
    By sabsay in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-12-2007, 09:52 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