+ Reply to Thread
Results 1 to 4 of 4

Copy row 1 from worksheet 1 to row 1 in worksheet 2

  1. #1
    Registered User
    Join Date
    04-03-2012
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    10

    Question Copy row 1 from worksheet 1 to row 1 in worksheet 2

    Hello,

    I've been trying a whole lot of forums to gt the answers to two questions. i have attached the sheet i am working with.

    On the "Budget" worksheet i am trying to copy an entire column to the "Budget import" sheet based on a selection via a dropdown menu

    I.E. if the dropdown menu selection is "4" then copy Period 4 from budget to column B in "Budget import"

    this needs 12 different copy past options.

    It's driving me nuts!

    any help would be very much appreciated!

    thanks in advance
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Copy row 1 from worksheet 1 to row 1 in worksheet 2

    see if the attached gives you what you want. i greated a range name for your periods, and used that for the drop down on the 2nd sheet. i didnt copy the formula down all the way, im sure you can manage that

    let me know how that works for you?
    Attached Files Attached Files
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Valued Forum Contributor smuzoen's Avatar
    Join Date
    10-28-2011
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2003/2007/2010
    Posts
    610

    Re: Copy row 1 from worksheet 1 to row 1 in worksheet 2

    You could use the following based on a drop down list in A6
    Please Login or Register  to view this content.
    The drop down list you can create with Data Validation. See attached workbook - code attached to Copy button
    Attached Files Attached Files
    Hope this helps.
    Anthony
    Pack my box with five dozen liquor jugs
    PS: Remember to mark your questions as Solved once you are satisfied. Please rate the answer(s) by selecting the Star in the lower left next to the Triangle. It is appreciated?

  4. #4
    Registered User
    Join Date
    04-03-2012
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Copy row 1 from worksheet 1 to row 1 in worksheet 2

    FDibbins

    This is exactly what i'm looking for! thank you sir!

    May i just ask for one favor, i am new to this and i would like to understand better what your doing here, i understand that it's a reference check with the drop down, but i dont understand how it recognizes which column to transpose. would it be ok to ask you to explain the code you used?

    thanks again, your a life saver!

    Smuzoen,

    Thank you for the help as well, this is also what i needed, and will work beautifully with some other work i am doing as well, so i ask the same question of you if you dont mind, so that i can adapt this code to work with my other projects.
    Thanks guys!!!

    -Drake
    Last edited by Drake2300; 08-10-2012 at 05:42 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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