+ Reply to Thread
Results 1 to 2 of 2

Pasting the specified range using vba

  1. #1
    Forum Contributor
    Join Date
    01-18-2017
    Location
    Poznań, Poland
    MS-Off Ver
    2016
    Posts
    139

    Pasting the specified range using vba

    Hello,

    For now whenever I wanted to create a value in vba I used the formula

    Please Login or Register  to view this content.
    However now I would like to populate a little bit more of cells. Is there a way to put values like that:

    Please Login or Register  to view this content.
    using a more simple code than multiplying RAnge.Method over and over again? Let's say I would like those values starting from Cell A1.

    Many thanks in advance.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,690

    Re: Pasting the specified range using vba

    Try such approach: write all data into one string, separating elements in columns by (for instance) comma, and end each row by (for instance) semicolon.
    Then use split to create array of one_row strings and split again to separate all entries for given row into separate columns.

    Enjoy:
    Please Login or Register  to view this content.
    Best Regards,

    Kaper

+ 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] Pasting into a Range instead of last used row
    By ScabbyDog in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-09-2016, 12:41 PM
  2. Pasting to dynamic Range
    By dusto in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-22-2014, 02:14 PM
  3. [SOLVED] Pasting A Range Into Next Available Row
    By amartin575 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-15-2013, 08:29 AM
  4. [SOLVED] Copying Active Cell-Row-Range to Other Workbook is pasting an image of copied range
    By jrtraylor in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-18-2013, 01:08 AM
  5. Naming a range and then pasting a value into that range
    By slaneues in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-12-2012, 11:58 AM
  6. [SOLVED] Pasting in a range
    By Zapper in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 01-22-2006, 02:25 PM
  7. [SOLVED] Pasting Values of range to another range
    By STEVE BELL in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-10-2005, 08:05 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