+ Reply to Thread
Results 1 to 2 of 2

Copying rows of data depending on the data type in a column

  1. #1
    Registered User
    Join Date
    01-03-2012
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    1

    Copying rows of data depending on the data type in a column

    Hi everyone

    New to this forum, and excel programming. I have had a good look for this solution but my apoligies in advanced if something like this has been answered before!

    Basically I need some kind of vba code that will find and copy particular rows of data in my spreadsheet 'Sheet 1' to a different location such as 'Sheet 2' depending on the type of data in column A. Column A has a mixture of headings, integer values and timestamps. Timestamps are in the format dd/mm/yy hh:mm:ss.000. Column B can contain, headings and a range of numerical values (floating point, integers etc).
    So in a nutshell I need to extract the actual information in the output of data in 'Sheet 1' by copying it to another location and 'Sheet 2' will have the copied rows.

    The actual information is in the rows where column A is a timestamp or when column B is a numerical value.

    I have used code similar to the one below to find particular values but I am completely stumped as to how to do this with a something like a timestamp or let it find particular data types if this is possible.

    Please Login or Register  to view this content.

    Thank you

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

    Re: Copying rows of data depending on the data type in a column

    It would be good if you attach a sample workbook. It will help you get a solution faster.
    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]

+ 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