+ Reply to Thread
Results 1 to 2 of 2

VBA to copy from one column and paste in another w/o overwriting what is in 2nd col alread

  1. #1
    Registered User
    Join Date
    09-28-2016
    Location
    Dallas, TX
    MS-Off Ver
    Office 365
    Posts
    15

    VBA to copy from one column and paste in another w/o overwriting what is in 2nd col alread

    I have data in one worksheet that is tied to a specific date. That data I can get over to another worksheet using formulas...I do so into a specific set of columns I use to catch and then launch that data into a set of database columns for permanent storage. I did this using a recorded macro which moved the data, erased what was in the Work Launch columns and then also erased what was in the source worksheet. Having trouble with next step.

    After filling in the source worksheet with date/data which through the formulas now fills the work launch columns, can I now activate a macro/vba to move that data into the storage columns without overwriting what is already there/deciding to move new data to another storage column if the first storage column is already filled with data from the first iteration through the process?

    Attached is the document. Source data originally comes from the "Daily Plan" tab. Drop down lists exist for Segment and Customer Name (pick physician first from segment, then choose any physician name)...affiliation will autofill. Then, enter anything in "Action" column.

    then...

    Move to the "M MD" tab...use the manual date entry in the Work Launch column to assign the same date as was in the "Daily Plan" tab to each of the physicians you selected. This will autofill in the follow-up column of Work Launch section whatever you put in Action on the Daily Plan worksheet.

    This is where the new macro/vba/formula is needed to move that info to the next available database storage columns.

    Any help much appreciated...including scrapping what I've done and approaching it very differently.

    Thanks...
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: VBA to copy from one column and paste in another w/o overwriting what is in 2nd col al

    This matches every name listed in column B on Daily Plan within column A on M MD and pastes the date and Action in the next empty columns.

    Please Login or Register  to view this content.
    Last edited by AlphaFrog; 09-29-2016 at 01:49 AM.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

+ 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. Macro to copy and paste without overwriting existing data
    By jmack36 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-18-2016, 07:49 AM
  2. Data Validation - Avoid overwriting due to copy/paste
    By amitgaja007 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-18-2015, 01:29 AM
  3. How to copy and paste data into middle of other cell without overwriting?
    By papisox in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-24-2014, 02:07 PM
  4. Stop overwriting cells - Copy and paste macro
    By juhaszp in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-25-2013, 05:37 PM
  5. Copy/Paste to Next Empty Row Overwriting Previous Row When Column A Is Empty
    By grantfitz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-19-2013, 04:34 PM
  6. copy and paste without overwriting cells containing values
    By schueyisking in forum Excel General
    Replies: 2
    Last Post: 08-14-2008, 05:43 AM
  7. copy and paste without overwriting cells containing values
    By schueyisking in forum Excel General
    Replies: 1
    Last Post: 08-14-2008, 12:26 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