+ Reply to Thread
Results 1 to 5 of 5

Macro with Formula to move specific information to new column

  1. #1
    Registered User
    Join Date
    05-12-2013
    Location
    Utah
    MS-Off Ver
    Excel 2003
    Posts
    33

    Macro with Formula to move specific information to new column

    I need a macro to move specific information.

    I get an excel sheet with W/C Employer: (whatever) entered below the patient it belongs to in column E. This information needs to move into its own column (H) in line with the above patient information so I can use it in a mail merge to word.

    The same thing needs to happen with WC injury date listed in column G. It moves to column I. Then delete the row it was moved from so I don't have an empty row.

    Sheet 1 is what I get. Sheet 2 is what I need to end up with.

    Thank you
    Attached Files Attached Files
    Last edited by redzan; 05-22-2014 at 06:55 PM.

  2. #2
    Forum Contributor
    Join Date
    03-06-2013
    Location
    Salt Lake City, Utah
    MS-Off Ver
    2007, 2010
    Posts
    127

    Re: Macro with Formula to move specific information to new column

    redzan,

    This work for me, but's it's a lot of code. Let me know if it works.

    Please Login or Register  to view this content.
    BrownBoy

    If happy, mark "SOVLED" & add to "REP"

  3. #3
    Registered User
    Join Date
    04-24-2014
    Location
    Pocatello, Idaho
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Macro with Formula to move specific information to new column

    Your "F" column formula didn't show up on either sheet when I opened your file, so I'm not sure what it is supposed to be. I got #VALUE errors. That being said, I was able to use the following code, and it worked fairly well. It still requires some formatting, but I'll leave that part up to you.

    Please Login or Register  to view this content.

  4. #4
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Macro with Formula to move specific information to new column

    I think this will do what you want
    Please Login or Register  to view this content.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  5. #5
    Registered User
    Join Date
    04-24-2014
    Location
    Pocatello, Idaho
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Macro with Formula to move specific information to new column

    Wow, that's better. Sorry about the [1 To 4]. I'm sure that's not what I typed originally, but I guess I got it wrong in there somewhere.

+ 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. Replies: 5
    Last Post: 12-18-2013, 10:33 PM
  2. [SOLVED] Macro to move any selected cell to a specific column on the same row
    By Jonah Mulski in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-30-2013, 12:23 PM
  3. Macro/VBA to move specific data from one column to another (without duplicates)
    By JezVanderBrown in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-29-2013, 06:36 AM
  4. Formula to move certain information in a column to a table that meets criteria?
    By MikeTruth in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-28-2012, 04:53 AM
  5. Replies: 2
    Last Post: 03-13-2006, 01:10 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