+ Reply to Thread
Results 1 to 4 of 4

VBA Copy/Paste Confusion

  1. #1
    jjward101
    Guest

    VBA Copy/Paste Confusion

    I have asked this a few times recently, but have not gotten much (read: any) response.

    I am creating a new worksheet names "Temp".
    I am populating Column A with Field Names, and am having issues with copying data from cells in the last row of "Project DB" Sheet, into the "Temp Sheet" in the cells corresponding with the newly created field names (Column B)

    Here is the code I am working with (Workbook is attached as well). The [Email Notifications] button on [Userform2] is where tis code is located. (my next step will be to copy the range in the Temp sheet into an outlook body, which i have done before, then kill the new sheet.

    I simply need help troubleshooting this formula to copy and paste last row data.

    HTML Code: 
    I would be truly grateful for ANY type of assistance.

    Thanks.
    Attached Files Attached Files
    Last edited by jjward101; 05-25-2022 at 01:31 PM.

  2. #2
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: VBA Copy/Paste Confusion

    Possibly something like this using transpose...
    Please Login or Register  to view this content.

  3. #3
    jjward101
    Guest

    Re: VBA Copy/Paste Confusion

    Thank you for your reply! My issue is that I am not needing ALL of the headers. Is there a way to modify this to include only certain columns using this method?

  4. #4
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: VBA Copy/Paste Confusion

    You could then delete the rows you didn't want, e.g.
    Please Login or Register  to view this content.

+ 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 text from a cell paste to website search box and copy & paste results in same sheet
    By JohnnyBoyxxx in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-26-2020, 06:06 PM
  2. Replies: 3
    Last Post: 01-01-2015, 06:26 AM
  3. How do I make the copy/paste of one column contingent on the copy/paste of another?
    By Kwasimitsu in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-23-2014, 01:51 PM
  4. Replies: 1
    Last Post: 01-16-2013, 05:36 AM
  5. 2 Macro's: only vertical copy/paste action and copy-paste 14 columns to the right.
    By vdongen in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-08-2010, 10:34 AM
  6. Replies: 1
    Last Post: 01-04-2005, 06:06 PM

Tags for this Thread

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