Results 1 to 5 of 5

automate copying cells into new worksheet if notblank, same worksheet if blank

Threaded View

  1. #1
    Registered User
    Join Date
    12-20-2012
    Location
    Denver, CO
    MS-Off Ver
    Excel 2003
    Posts
    7

    Red face automate copying cells into new worksheet if notblank, same worksheet if blank

    hi forum!!

    I have a spreadsheet with patient information that another company has asked for in a different format than they used to. instead of needing it as lines in a spreadsheet format they now want in separate sheets, divided by patient. Basically it's a form for each individual that they sent via a word doc that I copied into excel because I figured it'd be easier to transfer the data. Only problem is, I don't know the programming language at all. I've attached a spreadsheet example, where the names/demographic sheet is where I'm pulling the information from and the form sheet is where I want it transferred to. I need a script that does the following (and if anyone wants to just point me in the right direction on this, without doing all the heavy lifting, any level of assistance at all would be much appreciated!!) (note:my biggest struggle is how go to the next line when the script loops through, or specify whatever line it should be working on):

    row X, if column A is NOTBLANK copy entire "form" sheet (so i can preserve the template)
    then, in that newly copied sheet ("form (2)"), copy name, DOB, ID and first line of charges from "name_demographics" into correct fields on "form" sheet
    if BLANK, create a new charge line in "form" sheet by copying row and inserting copied cells (<-- each patient will have a different amount of charges, so i don't want to run out of space for that)
    copy charge code and amount from "name_demographics" sheet into "form (2)" sheet
    next row, restart

    I also don't know how to make it stop at the end (when there's no data in any of the lines... it'll be at a specified row though so i guess that helps).

    thank you so much!
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Copying cells dynamically to a worksheet based on values in another worksheet
    By freelance in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-10-2013, 01:45 PM
  2. [SOLVED] Copying selected cells from multiple rows and columns from worksheet to worksheet
    By janlindgren in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-25-2012, 02:58 AM
  3. Copy certain cells from one worksheet to another worksheet with blank rows
    By pmarsella in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-06-2009, 07:57 AM
  4. Copying a worksheet witrh protected cells to a new worksheet
    By John in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-01-2006, 10:25 AM
  5. How can I automate copying blank worksheet?
    By unsworthcl in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-24-2005, 12:52 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