+ Reply to Thread
Results 1 to 3 of 3

Copy & pasting at random number of rows using VBA

  1. #1
    Registered User
    Join Date
    11-25-2014
    Location
    south asia
    MS-Off Ver
    2007
    Posts
    4

    Copy & pasting at random number of rows using VBA

    I am having problem with putting the name of the supplier in the empty column in the "before" sheet in the attached file Problem.xlsx. I need to fill it like in the "after" sheet. Can it be done using VBA?

    Can anyone please help me with this? Thanks in advance

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,879

    Re: Copy & pasting at random number of rows using VBA

    Here!

    See the sheet attached and click on the RUN Button..

    Ensure Macros are enabled..

    By the way, your SlNo. had a Line Feed in between, which I changed to SlNo.
    Attached Files Attached Files
    Cheers!
    Deep Dave

  3. #3
    Registered User
    Join Date
    11-25-2014
    Location
    south asia
    MS-Off Ver
    2007
    Posts
    4

    Re: Copy & pasting at random number of rows using VBA

    Worked like a charm thank you

+ 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] Copy random rows
    By leader2k in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-09-2014, 12:39 PM
  2. Replies: 5
    Last Post: 06-21-2013, 10:40 AM
  3. [SOLVED] Copy Random Rows
    By goffa in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-21-2013, 07:36 PM
  4. Copying and Copy and Pasting Formula with Dynamic number of rows
    By patelh9 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-12-2010, 11:33 PM
  5. Extracting 10 random rows from one sheet, and pasting them on another.
    By gb99 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-08-2009, 11:22 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