+ Reply to Thread
Results 1 to 13 of 13

Putting Data in Other WorkSheets

  1. #1
    Registered User
    Join Date
    01-23-2012
    Location
    Warminster, England
    MS-Off Ver
    Excel 2010
    Posts
    73

    Putting Data in Other WorkSheets

    Having read my post I dont think Ive explained very well! Basically, depending on if criteria is met on the first worksheet (Entrants) I want to fill those entrants into the the next worksheet (Spaniel Special Puppy) filling it in from the top. At the moment an empty row is left on the spreadsheet (Spaniel Special Puppy) where criteria hasn't been met, which I dont want!
    Please Login or Register  to view this content.
    Last edited by dadrew; 09-02-2012 at 01:40 PM.

  2. #2
    Registered User
    Join Date
    01-23-2012
    Location
    Warminster, England
    MS-Off Ver
    Excel 2010
    Posts
    73

    Re: Putting Data in Other WorkSheets

    Corbinsbere Gundogs Competition.xlsI have attached my spreadsheet in the hope that someone can help me. Many thanks

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Putting Data in Other WorkSheets

    Which is your correct sample file? The one in post 2 or in post 3?'

    The one in post 3 does not match your question.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  4. #4
    Registered User
    Join Date
    01-23-2012
    Location
    Warminster, England
    MS-Off Ver
    Excel 2010
    Posts
    73

    Re: Putting Data in Other WorkSheets

    Hi its post 2, I had a problem with uploads, could you delete post 3 for me please. Many thanks

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Putting Data in Other WorkSheets

    Done.

    Try this code
    Please Login or Register  to view this content.
    Copy the Excel VBA code
    Select the workbook in which you want to store the Excel VBA code
    Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
    Choose Insert | Module
    Where the cursor is flashing, choose Edit | Paste

    To run the Excel VBA code:
    Choose View | Macros
    Select a macro in the list, and click the Run button

  6. #6
    Registered User
    Join Date
    01-23-2012
    Location
    Warminster, England
    MS-Off Ver
    Excel 2010
    Posts
    73

    Re: Putting Data in Other WorkSheets

    OK I did this and what it was doing was inserting the data at the bottom of current data from row 52

  7. #7
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Putting Data in Other WorkSheets

    Yes, thats because there are formulae in your sheets right uptil row 51. Once you clear them out, the data will fall in place.

  8. #8
    Registered User
    Join Date
    01-23-2012
    Location
    Warminster, England
    MS-Off Ver
    Excel 2010
    Posts
    73

    Re: Putting Data in Other WorkSheets

    OK I understand, so I clearly need the formulas in there, so is it possible to automatically add the formulas when the record is inserted.

    In addition if I run the code more than once it just adds the same records over again, really it should only add any new records!
    Last edited by dadrew; 09-03-2012 at 08:08 AM.

  9. #9
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Putting Data in Other WorkSheets

    Formulae in G & H columns only right?

  10. #10
    Registered User
    Join Date
    01-23-2012
    Location
    Warminster, England
    MS-Off Ver
    Excel 2010
    Posts
    73

    Re: Putting Data in Other WorkSheets

    Yes thats correct!

  11. #11
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Putting Data in Other WorkSheets

    Entire updated code -
    Please Login or Register  to view this content.

  12. #12
    Registered User
    Join Date
    01-23-2012
    Location
    Warminster, England
    MS-Off Ver
    Excel 2010
    Posts
    73

    Re: Putting Data in Other WorkSheets

    Superb, thanks so much for alll your help.

  13. #13
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Putting Data in Other WorkSheets

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

+ 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