+ Reply to Thread
Results 1 to 2 of 2

Copy Range I times

  1. #1
    Registered User
    Join Date
    05-27-2021
    Location
    Germany
    MS-Off Ver
    Microsoft Office 365
    Posts
    18

    Question Copy Range I times

    Dear all,

    I am a VBA newbie with a project that is definitely larger than me. I have a number of tasks I'd like to include to happen at one comfortable touch of a button. The first thing I am having issues with is the following:

    Worksheet "Artikelliste" and Worksheet "Verpackungen" are needed.

    I'd like to Count the amount of values in the column B in "Artikelliste" and Copy and Paste a range a certain amount of times in Worksheet "Verpackungen". The Range is also in the latter Worksheet. The templates which I am copying should all be neetly underneath each other, hence the offset.

    Here is the Code which I am having probably a number of issues with. Could you give me some pointers?

    Sub CopyTemplateITimes()


    Dim i As Long

    For i = 1 To Worksheets("Verpackungen").CountA(Range("B6:B100"))

    Stop
    Worksheets("Artikelliste").Range("B9:J21").Select
    Selection.Copy
    Range("B9").Offset(15, 0).Select

    Selection.PasteSpecial Paste:=xlPasteFormulas, Operation:=xlNone, _
    SkipBlanks:=False, Transpose:=False


    Next i

    End Sub






    Thank you so much for your time!
    missginius
    Last edited by missginius; 06-09-2021 at 09:21 AM.

  2. #2
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Copy Range I times

    for sure you have issues with code and if you want
    help to give good code you provide us file with sheet before and sheet after,
    that give us an idee what you want to achive.

    Kind regards
    Leo

+ 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 range x times
    By luisvv93 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-26-2019, 09:07 PM
  2. [SOLVED] Copy and Paste Range Down X times
    By Hyperdude in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-19-2018, 03:38 AM
  3. copy range from one sheet to another and then copy 5 times skipping ten rows
    By ammartino44 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-13-2015, 01:35 PM
  4. [SOLVED] copy range value x times in another sheet
    By nikenis in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-23-2013, 11:14 PM
  5. [SOLVED] Copy and paste a range x many times
    By acsta14 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-20-2012, 07:15 AM
  6. Copy a Range multiple times
    By alocke in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-18-2011, 12:29 AM
  7. Copy range several times less first row
    By markos97 in forum Excel General
    Replies: 4
    Last Post: 07-28-2010, 08:54 AM

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