{"id":103,"date":"2013-12-13T08:13:54","date_gmt":"2013-12-13T08:13:54","guid":{"rendered":"http:\/\/tastaturkind.ch\/?p=103"},"modified":"2018-12-04T10:07:45","modified_gmt":"2018-12-04T09:07:45","slug":"excel-split-filename-from-full-path","status":"publish","type":"post","link":"https:\/\/oliver-frick.ch\/wordpress\/index.php\/2013\/12\/13\/excel-split-filename-from-full-path\/","title":{"rendered":"Excel Split Filename from Full Path"},"content":{"rendered":"<p><code>Sub SplitFilenamefromFullPath()<br \/>\n'<br \/>\n' SplitFilenamefromFullPath Macro<br \/>\n' Macro recorded 19.05.2011 by Frick<br \/>\n'<br \/>\nDim a() As String<br \/>\n'MsgBox \"The selection object type is \" &amp; TypeName(Selection)<br \/>\nIf TypeName(Selection) = \"Range\" Then<br \/>\n' only do if it is a range<br \/>\nFor Each rngZelle In Selection<br \/>\n' MsgBox rngZelle.Value<br \/>\n' MsgBox TypeName(rngZelle)<br \/>\na = Split(rngZelle.Value, \"\/\")<br \/>\nIf UBound(a) &gt; 0 Then<br \/>\nrngZelle.Value = a(UBound(a))<br \/>\nEnd If<br \/>\n' MsgBox rngZelle.Value<br \/>\nNext<br \/>\nEnd If<br \/>\nEnd Sub<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sub SplitFilenamefromFullPath() &#8218; &#8218; SplitFilenamefromFullPath Macro &#8218; Macro recorded 19.05.2011 by Frick &#8218; Dim a() As String &#8218;MsgBox &#8222;The selection object type is &#8220; &amp; TypeName(Selection) If TypeName(Selection) = &#8222;Range&#8220; Then &#8218; only do if it is a range For &hellip; <a href=\"https:\/\/oliver-frick.ch\/wordpress\/index.php\/2013\/12\/13\/excel-split-filename-from-full-path\/\">Weiterlesen <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-103","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/oliver-frick.ch\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/103","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oliver-frick.ch\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oliver-frick.ch\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oliver-frick.ch\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oliver-frick.ch\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=103"}],"version-history":[{"count":2,"href":"https:\/\/oliver-frick.ch\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/103\/revisions"}],"predecessor-version":[{"id":347,"href":"https:\/\/oliver-frick.ch\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/103\/revisions\/347"}],"wp:attachment":[{"href":"https:\/\/oliver-frick.ch\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=103"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oliver-frick.ch\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=103"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oliver-frick.ch\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}