osx - Excel VBA Macro works in Windows but not on Mac -


as in title: using ms office 2013 on pc , 2011 on mac.

here code:

sub import_rekordow()  dim tbl listobject  call czyszczenie_kreatora2 set tbl = sheets("temp_1").listobjects("tabela8")     tbl.databodyrange     if .rows.count > 1       .offset(1, 0).resize(.rows.count - 1, .columns.count).rows.delete     end if   end      sheets("temp_1").range("tabela8").clearcontents     sheets("baza_danych").range("tabela7").copy     sheets("temp_1").range("tabela8[data kontroli]").pastespecial _         paste:=xlpastevalues, operation:=xlnone, skipblanks _         :=false, transpose:=false     sheets("temp_1").listobjects("tabela8").range.autofilter field:=20, criteria1:= _         "0"      application.cutcopymode = false     sheets("temp_1").range("tabela8[data kontroli]").entirerow.delete     sheets("temp_1").listobjects("tabela8").range.autofilter field:=20     sheets("temp_1").range("tabela8[[data kontroli]:[numer części]]").copy      sheets("kreator").range("c25").pastespecial _         paste:=xlpastevalues, operation:=xlnone, skipblanks _         :=false, transpose:=false      application.cutcopymode = false     sheets("temp_1").range("tabela8[[ok" & chr(10) & "(bez naprawy)]:[ok" & chr(10) & "(po naprawie)]]").copy     sheets("kreator").range("g25").pastespecial _         paste:=xlpastevalues, operation:=xlnone, skipblanks _         :=false, transpose:=false      application.cutcopymode = false     sheets("temp_1").range("tabela8[[wada1]:[ilość roboczogodzin]]").copy     sheets("kreator").range("k25").pastespecial _         paste:=xlpastevalues, operation:=xlnone, skipblanks _         :=false, transpose:=false      sheets("kreator").range("s25").end(xldown).listobject.listrows.add alwaysinsert:=false  end sub      sub czyszczenie_kreatora2()      sheets("kreator").listobjects("tabela1").resize range("$b$24:$s$25")     sheets("kreator").rows("26:50000").delete      end sub 

unfortunately i'm not 100% sure line (i haven't got mac) may here (as said friend):

sheets("temp_1").range("tabela8[[ok" & chr(10) & "(bez naprawy)]:[ok" & chr(10) & "(po naprawie)]]").copy 

the above column's name in table named "ok bez naprawy" oraz "ok po naprawie". i've tried copy these data separately, no effect. maybe made obvious mistakes, learning. thank in advance help!


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo