+ Reply to Thread
Results 1 to 6 of 6

Marco / VBA needed to extract data from one sheet to another table

  1. #1
    Registered User
    Join Date
    02-06-2014
    Location
    Stafford, England
    MS-Off Ver
    Excel 2007
    Posts
    3

    Marco / VBA needed to extract data from one sheet to another table

    Hi All,

    I am very very new to Macro's and VBA and would really appreciate some help - I am not sure where to start

    I have some data which is copied from our system in the format below, I then need to add only parts of this information to an existing spreadsheet on the network.

    This is the information (there could be lots of these entries, but all need to be added to the spreadsheet)

    Device ooo.1111111111111111111111555666663333 performance has deteriorated.
    increased from average value of 2041 days to 44589 days.
    warning
    2/6/2014 2:38:18 AM
    aaa-ab-cde00.efghijklmno.ddd.kk

    Device ooo.11111111111111111111115556666633356kk performance has deteriorated.
    increased from average value of 2041 days to 44589 days.
    warning
    2/6/2014 2:38:18 AM
    *aaa-ab-cde00.efghijklmno.ddd.kk*

    I then need part of the above data to be transferred to in Excel in the following column headers (see attachment for layout)

    Date Time Host Device Low Value High Value

    Does anybody know what is the quickest and easiest way of updating this spreadsheet..... I have to update the spreadsheet every morning and it is very time consuming

    Let me know if you need anymore information....Your help would be really appreciated

    Many thanks
    Lorraine
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Marco / VBA needed to extract data from one sheet to another table

    Can you attach a sample which has the data as it appears first on the spreadsheet when downloaded. Your current layout I think is how you would like it too appear after you run the macro.

  3. #3
    Registered User
    Join Date
    02-06-2014
    Location
    Stafford, England
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Marco / VBA needed to extract data from one sheet to another table

    Hi John,

    Thanks for your reply.... unfortunately this is how the data is copied out of the system exactly I normally just paste this into Excel in another sheet eg sheet 2 and then I cut and paste the data I need to where I need the data in the format shown on the attached spreadsheet .... in the end I only need the data that is in the attached spreadsheet format I then delete 'sheet 2' as I no longer need the original information.

    Device ooo.1111111111111111111111555666663333 performance has deteriorated.
    increased from average value of 2041 days to 44589 days.
    warning
    2/6/2014 2:38:18 AM
    aaa-ab-cde00.efghijklmno.ddd.kk

    Device ooo.11111111111111111111115556666633356kk performance has deteriorated.
    increased from average value of 2041 days to 44589 days.
    warning
    2/6/2014 2:38:18 AM
    aaa-ab-cde00.efghijklmno.ddd.kk

    Does that make sense?

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Marco / VBA needed to extract data from one sheet to another table

    I'm trying too establish if this is 5 rows or 1 cell when you paste it.

    Device ooo.1111111111111111111111555666663333 performance has deteriorated.
    increased from average value of 2041 days to 44589 days.
    warning
    2/6/2014 2:38:18 AM
    aaa-ab-cde00.efghijklmno.ddd.kk

  5. #5
    Registered User
    Join Date
    02-06-2014
    Location
    Stafford, England
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Marco / VBA needed to extract data from one sheet to another table

    Ahhh now I understand, sorry... it pastes into 5 rows in 1 column

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Marco / VBA needed to extract data from one sheet to another table

    If you pasted into Sheets("Sheet1") the results will go to Sheets("Sheet2") with this attempt.

    Please Login or Register  to view this content.
    There are much more elegant ways to achieve this and it doesn't handle varying device numbers well.

+ 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. Replies: 1
    Last Post: 12-13-2013, 03:03 AM
  2. Search for Excel file and the sheet within that from the given table data and extract data
    By adrian_slash in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-23-2013, 07:55 AM
  3. [SOLVED] Help needed to extract data's to a new sheet
    By Elangovan89 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-03-2013, 09:30 AM
  4. Macro Needed to extract data from one sheet to another
    By JimmiOO in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-24-2012, 09:48 AM
  5. Function needed to extract data from one sheet and import sequentially on to another
    By privateryan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-19-2009, 07:12 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