Excel VBA script Seperate sheet by large change -


background: i've been working vba scripts in excel. rc radio generates log files every day. may have 3 sessions in same spreadsheet. way tell start of 1 session , beginning of looking @ "time of day" column increments less second

i have found can separate data separate sheets using vba scripts.

is possible have excel read through column , perform action if change previous value more few seconds?

time of day  rudder ... 15:33:08.5   -1 15:33:08.7   ... 15:33:08.9 15:33:09.2 16:31:45.3 < 16:31:45.5 16:31:45.8 16:31:46.0 16:31:46.2 

in above data sample vba split @ row have marked because delta row above greater 10 seconds.

edit: ran code on 1 of spreadsheets after selecting time column wanted analyzed. worked this:

15:33:08.720 15:33:08.940 15:33:09.150 16:31:45.320  changes 16:31:45.530 

but showed change here:

16:31:58.780     16:31:59.000     16:31:59.200     16:31:59.420     16:31:59.620    changes 16:31:59.840     16:32:00.040 

it's weird because in other places change .2 seconds not marked change!

run code

sub testing()     dim erange range    each erange in selection      va = split(erange.text, ":")     va2 = split(erange.offset(1, 0).text, ":")      if va(1) <> va2(1)      erange.offset(1, 1).value = "changes"      end if      next erange     end sub 

Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -