+ Reply to Thread
Results 1 to 4 of 4

select and copy cells

  1. #1
    Registered User
    Join Date
    10-28-2011
    Location
    uk
    MS-Off Ver
    Excel 2003
    Posts
    24

    select and copy cells

    Afternoon all,
    Have some slight issues (again)

    I have trying to create a vba to start at cell F5, select all cells with values to the right(including F5), copy, move to sheet 2 paste and transpose in column F. Then select F6 and repeat the process paste underneath all previously copied values.

    The first snag I have is if there is no data in the adjacent cell. So for example F5 has a value and F6 does not it copies the entire row. When I actually only want F5.

    The second problem is to get the pasting to continue underneath previous values and not override them.
    SO if f5,g6,h7 have values. The next paste needs to be 3 rows underneath the previous.

    Hopefully that makes sense. If you are unsure please let me know.
    Regards

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,877

    Re: select and copy cells

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    10-28-2011
    Location
    uk
    MS-Off Ver
    Excel 2003
    Posts
    24

    Re: select and copy cells

    Please see attached for clarification
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: select and copy cells

    Result in sheet 3


    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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. VBA to copy and paste select cells
    By cmccabe in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-22-2013, 01:13 PM
  2. Replies: 2
    Last Post: 09-06-2012, 07:55 PM
  3. [SOLVED] can only copy/select visible cells w autofilter on &hidden columns, want to copy all cells
    By JTwrk in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-25-2012, 02:12 AM
  4. Select and copy cells based on values in another cells
    By JoC in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-25-2008, 04:39 AM
  5. Select a range of cells and then copy them, and paste into other cells
    By Dynelor in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-24-2007, 04:03 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