+ Reply to Thread
Results 1 to 7 of 7

Post info from one spreadsheet in another

  1. #1
    Registered User
    Join Date
    02-19-2014
    Location
    Oklahoma
    MS-Off Ver
    Excel 2010
    Posts
    4

    Post info from one spreadsheet in another

    I work in CPS and my supervisor has tasked me to take data from a spreadsheet he created and have it populate in a spreadsheet I created. His spreadsheet (Intake) tracks the worker who received the referral, the name on the referral, the number of the referral, the date the referral was received, the priority of the referral, and the county the referral was in. My spreadsheet (Tracking) tracks the referral number, the name on the referral, the worker who received the referral, the date the referral was received, and due dates. My thoughts are to enter the referral number in Tracking and have it auto populate the name on the referral, the worker's name, and the date the referral was received. I cannot figure out how to have this happen. I have attached a sample workbook. Any help will be greatly appreciated!


    District Referral Log .xlsm

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Post info from one spreadsheet in another

    try this macro in your Tracking sheet:
    Please Login or Register  to view this content.
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

  3. #3
    Registered User
    Join Date
    02-19-2014
    Location
    Oklahoma
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Post info from one spreadsheet in another

    That worked wonderfully Pierre!!! Thanks so much. My only issue now is if someone enters the wrong number in the Referral Number cell and then delete the number it seems to "break" the whole thing. In other words it appears the script no longer works if they delete the referral number in Intake. Is there something I can do about that?

  4. #4
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Post info from one spreadsheet in another

    Sorry about that. I should have doone it right the first time. Here you go:
    Please Login or Register  to view this content.
    The difference is that now we look if we found something. If not, we do nothing. This means that if no data is copied, you got a wrong referral number.

  5. #5
    Registered User
    Join Date
    02-19-2014
    Location
    Oklahoma
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Post info from one spreadsheet in another

    01 Tracking before deletion.jpgI'm still having some problems with an error after deleting a referral number in tracking. I don't mean to be a bother, but the people who will be working the spreadsheet are less savvy with spreadsheets than I am (and you can tell how savvy I am!!!). I have attached three pictures showing the spreadsheet before I delete the referral number, the error I get when I delete the referral number, and the debugging screen. Thank you so much for all of your help!!!!

    03 Debugging screen.JPG01 Tracking before deletion.jpg02 Tracking error after deleting referral number.JPG

  6. #6
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Post info from one spreadsheet in another

    I think I understand your point and it is a very good one.
    I thought it would be a good thing to erase all copied data if you delete a referral. What do you think?
    here the modified macro:
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    02-19-2014
    Location
    Oklahoma
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Post info from one spreadsheet in another

    That worked perfectly!!! I especially love how it deletes the line when you delete the referral number. Thank you, thank you, thank you!!!

+ 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. Need VBA that will take info from one sheet and post it on another
    By superchew in forum Excel Programming / VBA / Macros
    Replies: 44
    Last Post: 11-11-2013, 06:52 PM
  2. [SOLVED] First post: Connecting table info to one cell using IF statements.
    By keisha in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-19-2013, 06:40 PM
  3. Autopopulate a spreadsheet based on specific info from another spreadsheet
    By Boitumelo in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-07-2011, 05:48 AM
  4. [SOLVED] new copy of spreadsheet using old spreadsheet info.
    By e_vandenbush in forum Excel General
    Replies: 1
    Last Post: 01-17-2006, 01:30 AM
  5. Info Didn't Post Right Sorry
    By Lee in forum Excel General
    Replies: 0
    Last Post: 04-16-2005, 02:06 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