+ Reply to Thread
Results 1 to 1 of 1

saving splitted data into different worksheets/ workbooks

  1. #1
    Registered User
    Join Date
    06-16-2014
    Location
    Belgium
    MS-Off Ver
    2010
    Posts
    1

    saving splitted data into different worksheets/ workbooks

    I have vba-code written for me but as I'm not ver knowledgeable about programming in vba ( I can follow the logic and understand what the code is doing) I cannot program it myself.

    1. how can I make sure that whatever the size of imported data in the original sheet, is set as tabel1

    The code splits up the raw data of a worksheet into different workbooks and/or worksheets depending on the content of certain cells.
    A new workbook has to be made (or added to) whenever a cell in column A has WB: in it (in the attached file there are WB:AWP en WB:BM so there should be a workbook with the naam AWP and one with the name BM.
    Each of these workbooks will contain worksheets that have the name of a location found in column F connectionlocation. The goal is to split the lines in the original worksheet (Sheet2) so that the content of each line is put in the right workbook and the right locationworksheet depending on the connectionlocation in column F.
    The vba code does work this way but whenever it has to add to an already existing worksheet/book there is an error. As far as I have been able to debug the code, it cannot overwrite an exisiting worksheet. As the vba code is quite condensed I could not myself find the right way to insert a sub that would copy the information already in a sheet , add the line that caused the error into the right sheet and continue.
    Any help would be greatly appreciated. If this explanation is not clear enough, I will gladly clarify.

    Please Login or Register  to view this content.
    regards
    stephaan
    Attached Files Attached Files

+ 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. Copy/Paste Range of Data from Multiple Workbooks/Worksheets to Master Workbook/Worksheets
    By NumberCruncher311 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-19-2013, 08:21 PM
  2. SAVING DATA TO CLOSED WORKBOOKS
    By DarnTootn in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-15-2006, 11:25 AM
  3. Saving worksheets within workbooks as individual files
    By Colin Hayes in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-11-2006, 01:55 PM
  4. Answer to Saving worksheets as individual workbooks using code?
    By H.A. de Wilde in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-04-2006, 12:40 PM
  5. [SOLVED] One file splitted into worksheets
    By Heine in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-09-2005, 08:06 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