+ Reply to Thread
Results 1 to 3 of 3

Macro to search and copy specific information on the next blank line.

  1. #1
    Registered User
    Join Date
    05-31-2013
    Location
    Somewhere
    MS-Off Ver
    Microsoft 365
    Posts
    80

    Macro to search and copy specific information on the next blank line.

    I am hoping someone can help me. I will be as detailed as possible, but please let me know if you need more information from me.

    What my end goal is for this to happen:
    Staff are to enter information on the worksheet "Absence Memo".
    I then need some of this information to then copy over to the worksheet called "ProjectedActual".

    The first thing that would need to take place thought would to have Absence Memo B7 (name of Physician) to be searched and then found in the ProjectedActual sheet. The name would only appear once on this sheet.

    After the search is done, the following information is required to transfer and entered int the next blank line after the doctor's name.
    - Absence Memo E12 to ProjectedActual column D
    - Absence Memo G12 to ProjectedActual column B
    - Absence Memo I12 to ProjectedActual column C

    Please let me know if you require anything else from me!!

    Thanks!

    Alert Chart - 2012.xlsm

  2. #2
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Macro to search and copy specific information on the next blank line.

    Please Login or Register  to view this content.
    Untested.
    Thanks,
    Solus


    Please remember the following:

    1. Use [code] code tags [/code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    Highlight the code in your post and press the # button in the toolbar.
    2. Show appreciation to those who have helped you by clicking below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

    "Slow is smooth, smooth is fast."

  3. #3
    Registered User
    Join Date
    05-31-2013
    Location
    Somewhere
    MS-Off Ver
    Microsoft 365
    Posts
    80

    Re: Macro to search and copy specific information on the next blank line.

    I finally had a chance to try this code, and the line: ws2.Range("B" & l).Offset(1).Select
    comes back as highlighted when its debugged. What could be causing this?

+ 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: 2
    Last Post: 07-19-2013, 10:13 AM
  2. search and enter specific information on the next blank line without deleting
    By jlo33 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-15-2013, 10:03 AM
  3. Macro to copy specific line from text file and paste into specific cell in excel
    By keeneye in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-05-2013, 10:35 AM
  4. Macro to search sheet for certain criteria and copy specific data to cell
    By ThaGonz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-02-2012, 12:34 PM
  5. Replies: 0
    Last Post: 11-19-2009, 09:20 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