+ Reply to Thread
Results 1 to 8 of 8

paste on same work sheet

  1. #1
    Registered User
    Join Date
    11-22-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    31

    paste on same work sheet

    Dear friends,

    Pl find enclosed a sample spread sheet.

    Pl help me to have a VBA code to create slips on same worksheet (one after another). Presently i am using Vlookup.

    Regards

    Srinivas
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: paste on same work sheet

    Why?

    If you are wanting to create and print lots of different slips, or even if you don't and just want to look at a particular slip, treat the slip as a template sheet and have a macro that runs down the data sheet and populates the template for each row. Either by populating B1 with the number from each row in column A or write the row details direct to each cell in B2 & B4:E4

    See attached as an example. Just double click in the data table
    Attached Files Attached Files
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Valued Forum Contributor
    Join Date
    07-04-2012
    Location
    Cape Town, RSA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    1,050

    Re: paste on same work sheet

    Try this...
    Attached Files Attached Files
    Regards,
    Rudi

  4. #4
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: paste on same work sheet

    try:
    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  5. #5
    Valued Forum Contributor
    Join Date
    07-04-2012
    Location
    Cape Town, RSA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    1,050

    Re: paste on same work sheet

    Olly,

    Great trick with using SpecialCells(xlCellTypeConstants) for the borders.
    I wish I thought of that!

  6. #6
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: paste on same work sheet

    Quote Originally Posted by RudiS View Post
    Olly,

    Great trick with using SpecialCells(xlCellTypeConstants) for the borders.
    I wish I thought of that!
    I saw your workbook after I posted my code. They're nearly identical! Great minds think alike...

    Thanks, re. borders. They can be laborious to apply, so I like trying to find shortcuts!

  7. #7
    Valued Forum Contributor
    Join Date
    07-04-2012
    Location
    Cape Town, RSA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    1,050

    Re: paste on same work sheet

    I will certainly remember it from hence forth. I'll call it the Olly Borders Trick.
    I think your engrafted into stone in my mind now! LOL

  8. #8
    Registered User
    Join Date
    11-22-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: paste on same work sheet

    Dear Friends

    Many thanks...

    Regards

    Srinivas

+ 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 and paste only formula across the work sheet
    By Gemini9 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-15-2013, 12:04 PM
  2. Copy, find, paste from one work sheet to another
    By dushpatel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-23-2013, 07:32 AM
  3. Copy paste a set range to another tab in the same work sheet
    By forbes7 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-22-2012, 06:38 AM
  4. Sort, copy paste to new work sheet
    By zrupnick in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-31-2009, 04:24 AM
  5. Paste special into a filtered work sheet
    By SmithDelgado in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-20-2006, 01:25 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