+ Reply to Thread
Results 1 to 8 of 8

cut & paste cells to new destination not working right

  1. #1
    Registered User
    Join Date
    07-08-2017
    Location
    Oregon, USA
    MS-Off Ver
    2010
    Posts
    13

    cut & paste cells to new destination not working right

    Forgive me if this code looks wonky. I pieced it together knowing very little about coding. What I want it to do is cut all cells with a value greater than 300 from cell range "B2:B71", and then paste those cells into column "I". It pastes them over, but is failing to paste the first cell that meets the value requirement. I think this may be because I have a header in I1. Help?

    Please Login or Register  to view this content.

    TIA
    Last edited by Veroshima; 09-02-2017 at 07:34 AM.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: cut & paste cells to new destination not working right

    3. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the [#] button at the top of the post window (if you are editing an existing post, press Go Advanced to see the [#] button). The result will appear like this in the post window:

    Please Login or Register  to view this content.
    ... and appear like this when posted:




    your code here ...
    and here ...
    and here
    You can also type the code tags in manually if you prefer. For more information about these and other tags, click here.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    07-08-2017
    Location
    Oregon, USA
    MS-Off Ver
    2010
    Posts
    13

    Re: cut & paste cells to new destination not working right

    Oh, thank you! I will do that.

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: cut & paste cells to new destination not working right

    Should I not start from 2?
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  5. #5
    Registered User
    Join Date
    07-08-2017
    Location
    Oregon, USA
    MS-Off Ver
    2010
    Posts
    13

    Re: cut & paste cells to new destination not working right

    Yes, to start on 2 would be ideal. I don't want to use a specific range, though, like "I2:I40". Just "I2: (however many cells it takes)" Is this possible?

  6. #6
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: cut & paste cells to new destination not working right

    Please Login or Register  to view this content.
    Last edited by mehmetcik; 09-02-2017 at 10:42 AM.

  7. #7
    Registered User
    Join Date
    07-08-2017
    Location
    Oregon, USA
    MS-Off Ver
    2010
    Posts
    13

    Re: cut & paste cells to new destination not working right

    I am getting a "next without for" error on this.
    Last edited by Veroshima; 09-02-2017 at 09:33 AM.

  8. #8
    Registered User
    Join Date
    07-08-2017
    Location
    Oregon, USA
    MS-Off Ver
    2010
    Posts
    13

    Re: cut & paste cells to new destination not working right

    Although I did not get your sub test to work, looking at your code helped me to see what I was doing wrong. Thank you so much for your time!

+ 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. Copy from static destination & paste to dynamic destination
    By Marbleking in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-31-2015, 09:31 AM
  2. Copy and Paste w/ Paste Destination determined by Cell Value
    By jeremy9er7 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-10-2014, 10:42 AM
  3. [SOLVED] Help with code to paste copied data into a destination workbook
    By Grizz in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-26-2014, 06:27 AM
  4. [SOLVED] paste source filepath information to destination book (code included)
    By macrorookie in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-24-2014, 03:15 PM
  5. Paste in "match destination format" macro code
    By Hopelesslylost in forum Excel General
    Replies: 6
    Last Post: 12-05-2012, 01:57 PM
  6. Code not working exactly, copy and paste issue
    By jpthelpguy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-22-2009, 01:42 PM
  7. Using destination filepaths listed in cell contents opposing to coding destination
    By kuraitori in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-22-2009, 01:23 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