+ Reply to Thread
Results 1 to 8 of 8

VBA copy value to specific columns

  1. #1
    Registered User
    Join Date
    01-29-2021
    Location
    Canada
    MS-Off Ver
    2019
    Posts
    96

    VBA copy value to specific columns

    hello everyone.
    Can you please let me know if it is possible to copy some cells to specific columns in same row?
    like this example if i enter any value from 1-15 into A:F, copy them in the same row under same numbers?
    Many thanks
    screenshot.5841.jpg
    Attached Files Attached Files
    Last edited by Excl3454; 03-14-2021 at 01:13 AM.

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,024

    Re: VBA copy value to specific columns

    Copy and paste this macro into the worksheet code module. Do the following: right click the tab name for your sheet and click 'View Code'. Paste the macro into the empty code window that opens up. Close the code window to return to your sheet. Enter a number in A:F and press the RETURN key.
    Please Login or Register  to view this content.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,409

    Re: VBA copy value to specific columns

    Similar solution to @Mumps
    Input range limited to A2:F5
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    01-29-2021
    Location
    Canada
    MS-Off Ver
    2019
    Posts
    96

    Re: VBA copy value to specific columns

    Quote Originally Posted by Mumps1 View Post
    Copy and paste this macro into the worksheet code module. Do the following: right click the tab name for your sheet and click 'View Code'. Paste the macro into the empty code window that opens up. Close the code window to return to your sheet. Enter a number in A:F and press the RETURN key.
    Please Login or Register  to view this content.
    Thank you so much for quick solution wish you all best

  5. #5
    Registered User
    Join Date
    01-29-2021
    Location
    Canada
    MS-Off Ver
    2019
    Posts
    96

    Re: VBA copy value to specific columns

    Quote Originally Posted by torachan View Post
    Similar solution to @Mumps
    Input range limited to A2:F5
    Please Login or Register  to view this content.
    Thank you so much very nice of you

  6. #6
    Registered User
    Join Date
    01-29-2021
    Location
    Canada
    MS-Off Ver
    2019
    Posts
    96

    Re: VBA copy value to specific columns

    do you know if copies can be deleted if it is deleted from A:F?
    Thnaks again

  7. #7
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,024

    Re: VBA copy value to specific columns

    You are very welcome.

  8. #8
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,409

    Re: VBA copy value to specific columns

    Follow up of PM from OP.
    Alternative for group of data.
    Copy range "A20:F23" - paste to range "A2:F5" - press green button - block splits and transfers.
    small macro in sheet module on green button.
    hope this is what you wanted.
    torachan
    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. [SOLVED] macro to copy specific columns and rows for a specific month and week
    By Shellybelly in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-23-2015, 11:23 AM
  2. [SOLVED] Copy specific columns to specific columns in another worksheet
    By mahat in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-13-2014, 11:24 AM
  3. How to Copy Specific Columns into a new Specific Worksheet?
    By aevo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-26-2013, 11:07 PM
  4. Replies: 8
    Last Post: 04-04-2013, 08:02 PM
  5. [SOLVED] Macro code to Copy specific rows into specific columns
    By macrofan2012 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-11-2012, 11:24 AM
  6. Macro to copy specific data to specific columns from a pivot table
    By Raju Radhakrishnan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-09-2012, 07:24 PM
  7. Copy specific columns to specific cell on new sheet
    By jones_net in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-19-2010, 02:34 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