+ Reply to Thread
Results 1 to 6 of 6

Copy Cell to Column X times Based On Cell Value

  1. #1
    Registered User
    Join Date
    08-06-2014
    Location
    Wales
    MS-Off Ver
    2010
    Posts
    15

    Copy Cell to Column X times Based On Cell Value

    As the Title Says I'm looking for VB solution to Copy A Cell to a Column X times Based On Cell Value

    I have scanned though the Search Function on the forum but nothing that answers my question or no code that jumps out at me

    I Have no VB coding Experience what so ever but have learnt a bit over a few days

    This will be part of a bigger Project but have Attached a test sample for your viewing

    Test.xlsm

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Copy Cell to Column X times Based On Cell Value

    Please Login or Register  to view this content.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    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,879

    Re: Copy Cell to Column X times Based On Cell Value

    Here is another way of doing it.

    Please Login or Register  to view this content.
    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

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Copy Cell to Column X times Based On Cell Value

    Subtle difference in our approaches: if the macro is re-run, my code will append the values to any there, whereas, Alan's will paste it to cell G1 down. Either may be what you want, so neither is right or wrong based on what you have stated the requirement to be.

    Regards, TMS

  5. #5
    Registered User
    Join Date
    08-06-2014
    Location
    Wales
    MS-Off Ver
    2010
    Posts
    15

    Re: Copy Cell to Column X times Based On Cell Value

    You guys Are Awesome Both coding's worked a treat credit to you both

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Copy Cell to Column X times Based On Cell Value

    You're welcome. Thanks for the rep.

+ 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 a row and paste it a number of times based on a cell value
    By glrubens in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-02-2013, 12:37 PM
  2. [SOLVED] Copy a formula x times sideways based on value in a cell
    By fokeiro in forum Excel General
    Replies: 5
    Last Post: 03-08-2013, 02:50 PM
  3. VBA; copy paste number of times based on cell value
    By photopidge in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-25-2011, 03:17 AM
  4. Copy Worksheet X Times Based on Cell Value
    By PY_ in forum Excel General
    Replies: 2
    Last Post: 01-04-2011, 04:10 PM
  5. copy sheet a # of times based on cell value
    By nuver in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-08-2005, 03:34 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