+ Reply to Thread
Results 1 to 6 of 6

Unload Data into another Workbook.

  1. #1
    Registered User
    Join Date
    07-06-2010
    Location
    Gloucester, England
    MS-Off Ver
    Excel 2003
    Posts
    9

    Unload Data into another Workbook.

    Hello,

    I'm hoping this is an easy coding issue.

    I have a input sheet (not user form) for data entry and the data is entered in to another tab via a macro on completion.

    I would like to have the data entered in to different workbook.

    Can you tell me if this is possiable and if so what would I need to do to change the 'Worksheets("DATA")' part?

    Please Login or Register  to view this content.
    Thanks in advance

    Ben
    Last edited by ben78; 07-14-2010 at 11:12 AM.

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Unload Data into another Workbook.

    Something like this:

    Please Login or Register  to view this content.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Registered User
    Join Date
    07-06-2010
    Location
    Gloucester, England
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Unload Data into another Workbook.

    Hi Dom

    Sorry for the delay in getting back to you.

    I've copied the code into my module, created the workbook I'm to use, re-named a tab to "DATA" and changed the code to this workbook.

    when I run the macro it opens the workbook ok but then I get a runtime error 9 starting on the line
    Please Login or Register  to view this content.
    .

    Full module is as follows,

    Please Login or Register  to view this content.

    Do I need to reference the worksheets("INPUT PAGE") as an active workbook?

    Any help apreticated (I'm very wet behind the ears regarding VBA)

    Ben

  4. #4
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Unload Data into another Workbook.

    Try this:

    Please Login or Register  to view this content.

    Dom

  5. #5
    Registered User
    Join Date
    07-06-2010
    Location
    Gloucester, England
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Unload Data into another Workbook.

    Dom

    Made a slight change to tell it which tab to copy to.

    Please Login or Register  to view this content.
    It now works to prefection.

    Thanks Again,

    Ben

  6. #6
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Unload Data into another Workbook.

    Quote Originally Posted by ben78 View Post
    Dom

    Made a slight change to tell it which tab to copy to.

    Please Login or Register  to view this content.
    It now works to prefection.

    Thanks Again,

    Ben
    Aye, I didn't test it but should have spotted that little omission.

    Dom

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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