{"id":5777,"date":"2025-07-15T13:34:44","date_gmt":"2025-07-15T13:34:44","guid":{"rendered":"https:\/\/functiontranslator.com\/id-registru\/"},"modified":"2021-02-26T10:02:30","modified_gmt":"2021-02-26T10:02:30","slug":"register-id","status":"publish","type":"post","link":"https:\/\/functiontranslator.com\/cs\/register-id\/","title":{"rendered":"ID.REGISTRU"},"content":{"rendered":"<p>V tomto \u010dl\u00e1nku se podrobn\u011b zam\u011b\u0159\u00edme na funkci <strong>ID.REGISTRU<\/strong> (v angli\u010dtin\u011b <em>REGISTER.ID<\/em>), kter\u00e1 je dostupn\u00e1 jak v MS Excel, tak v Google Sheets. Tato funkce je speci\u00e1ln\u011b ur\u010dena pro registraci u\u017eivatelsky definovan\u00fdch funkc\u00ed v dokumentu. Pod\u00edvejme se na jej\u00ed detailn\u00ed popis, syntaxi a uk\u00e1\u017eeme si n\u011bkolik praktick\u00fdch p\u0159\u00edklad\u016f jej\u00edho pou\u017eit\u00ed.<\/p>\n<h2>Syntaxe a popis funkce<\/h2>\n<p>Funkce ID.REGISTRU umo\u017e\u0148uje zaregistrovat proceduru napsanou ve Visual Basic for Applications (VBA) a pro Google Sheets v JavaScriptu. Po registraci lze tuto funkci pou\u017e\u00edvat jako b\u011b\u017enou funkci listu.<\/p>\n<p>Syntaxe funkce je n\u00e1sleduj\u00edc\u00ed:<\/p>\n<pre><code>ID.REGISTRU(n\u00e1zev_modulu, procedura, [typ_argumentu1], [typ_argumentu2],...)<\/code><\/pre>\n<ul>\n<li><strong>n\u00e1zev_modulu<\/strong> je textov\u00fd \u0159et\u011bzec ur\u010duj\u00edc\u00ed jm\u00e9no VBA modulu v Excelu.<\/li>\n<li><strong>procedura<\/strong> je textov\u00fd \u0159et\u011bzec ur\u010duj\u00edc\u00ed n\u00e1zev VBA procedury, kterou chceme zaregistrovat.<\/li>\n<li><strong>typ_argumentu<\/strong> (voliteln\u00fd) je textov\u00fd \u0159et\u011bzec, kter\u00fd specifikuje typ argumentu procedury.<\/li>\n<\/ul>\n<p>Pro Google Sheets v prost\u0159ed\u00ed Google Apps Script je proces podobn\u00fd, av\u0161ak je p\u0159izp\u016fsoben\u00fd pro JavaScript.<\/p>\n<h2>Praktick\u00e9 p\u0159\u00edklady<\/h2>\n<p>Nyn\u00ed se pod\u00edv\u00e1me na n\u011bkolik p\u0159\u00edklad\u016f, jak funkci ID.REGISTRU pou\u017e\u00edt.<\/p>\n<h2>Registrace vlastn\u00ed funkce v Excelu<\/h2>\n<p>P\u0159edpokl\u00e1dejme, \u017ee m\u00e1me ve VBA modulu proceduru <code>DoubleNumber<\/code>, kter\u00e1 zdvojn\u00e1sobuje hodnotu zadanou jako argument. Aby bylo mo\u017en\u00e9 tuto proceduru pou\u017e\u00edvat p\u0159\u00edmo v bu\u0148k\u00e1ch Excelu, mus\u00edme ji nejprve zaregistrovat pomoc\u00ed funkce ID.REGISTRU:<\/p>\n<pre><code>=ID.REGISTRU(\"ThisWorkbook\", \"DoubleNumber\", \"Double\")<\/code><\/pre>\n<p>V tomto vzorci <code>\"ThisWorkbook\"<\/code> odkazuje na aktu\u00e1ln\u00ed pracovn\u00ed knihu, <code>\"DoubleNumber\"<\/code> je n\u00e1zev procedury a <code>\"Double\"<\/code> specifikuje typ argumentu, kter\u00fd procedura p\u0159ij\u00edm\u00e1.<\/p>\n<h2>Registrace u\u017eivatelsk\u00fdch funkc\u00ed v Google Sheets<\/h2>\n<p>V Google Sheets se registrace JavaScriptov\u00e9 funkce prov\u00e1d\u00ed podobn\u011b. P\u0159\u00edklad m\u016f\u017ee vypadat takto:<\/p>\n<pre><code>\/\/ V editoru skript\u016f Google Sheets definujeme funkci function DoubleNumber(input) { return input * 2; }<\/code><\/pre>\n<p>Po ulo\u017een\u00ed skriptu a obnoven\u00ed listu bude funkce dostupn\u00e1 s n\u00e1zvem, pod jak\u00fdm byla ulo\u017eena:<\/p>\n<pre><code>=DoubleNumber(A1)<\/code><\/pre>\n<p>V tomto p\u0159\u00edkladu <code>A1<\/code> obsahuje hodnotu, kterou chceme zdvojn\u00e1sobit.<\/p>\n<p>D\u00edky t\u00e9to funkci m\u016f\u017eeme efektivn\u011b vyu\u017e\u00edvat vlastn\u00ed procedury p\u0159\u00edmo v bu\u0148k\u00e1ch tabulkov\u00e9ho procesoru, co\u017e zna\u010dn\u011b roz\u0161i\u0159uje mo\u017enosti a flexibilitu na\u0161ich dokument\u016f.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Vr\u00e1t\u00ed ID registru d\u0159\u00edve registrovan\u00e9 zadan\u00e9 dynamick\u00e9 knihovny (DLL) nebo zdroje k\u00f3du<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[290],"tags":[],"class_list":["post-5777","post","type-post","status-publish","format-standard","hentry","category-doplnek-a-automatizace"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Funkce REGISTER.ID (ID.REGISTRU) v Excelu: jak funguje, primjeri kori\u0161tenja formule<\/title>\n<meta name=\"description\" content=\"Opis funkcije REGISTER.ID (ID.REGISTRU) u Excelu i Google tablicama. Sintaksa, parametri funkcije te prakti\u010dni primjeri.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/functiontranslator.com\/cs\/register-id\/\" \/>\n<meta property=\"og:locale\" content=\"cs_CZ\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Funkce REGISTER.ID (ID.REGISTRU) v Excelu: jak funguje, primjeri kori\u0161tenja formule\" \/>\n<meta property=\"og:description\" content=\"Opis funkcije REGISTER.ID (ID.REGISTRU) u Excelu i Google tablicama. Sintaksa, parametri funkcije te prakti\u010dni primjeri.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/functiontranslator.com\/cs\/register-id\/\" \/>\n<meta property=\"og:site_name\" content=\"Function Translator\" \/>\n<meta property=\"article:published_time\" content=\"2025-07-15T13:34:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-02-26T10:02:30+00:00\" \/>\n<meta name=\"author\" content=\"glavadmin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Funkce REGISTER.ID (ID.REGISTRU) v Excelu: jak funguje, primjeri kori\u0161tenja formule\" \/>\n<meta name=\"twitter:label1\" content=\"Napsal(a)\" \/>\n\t<meta name=\"twitter:data1\" content=\"glavadmin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Odhadovan\u00e1 doba \u010dten\u00ed\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minuty\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/functiontranslator.com\/cs\/register-id\/\",\"url\":\"https:\/\/functiontranslator.com\/cs\/register-id\/\",\"name\":\"Funkce REGISTER.ID (ID.REGISTRU) v Excelu: jak funguje, primjeri kori\u0161tenja formule\",\"isPartOf\":{\"@id\":\"https:\/\/functiontranslator.com\/no\/#website\"},\"datePublished\":\"2025-07-15T13:34:44+00:00\",\"dateModified\":\"2021-02-26T10:02:30+00:00\",\"author\":{\"@id\":\"https:\/\/functiontranslator.com\/no\/#\/schema\/person\/87663eece497ca58643166ecb09f1389\"},\"description\":\"Opis funkcije REGISTER.ID (ID.REGISTRU) u Excelu i Google tablicama. Sintaksa, parametri funkcije te prakti\u010dni primjeri.\",\"breadcrumb\":{\"@id\":\"https:\/\/functiontranslator.com\/cs\/register-id\/#breadcrumb\"},\"inLanguage\":\"cs\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/functiontranslator.com\/cs\/register-id\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/functiontranslator.com\/cs\/register-id\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Funkce aplikace Excel\",\"item\":\"https:\/\/functiontranslator.com\/cs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Dopln\u011bk a automatizace\",\"item\":\"https:\/\/functiontranslator.com\/cs\/doplnek-a-automatizace\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"ID.REGISTRU\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/functiontranslator.com\/no\/#website\",\"url\":\"https:\/\/functiontranslator.com\/no\/\",\"name\":\"Function Translator\",\"description\":\"Excel function translator\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/functiontranslator.com\/no\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"cs\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/functiontranslator.com\/no\/#\/schema\/person\/87663eece497ca58643166ecb09f1389\",\"name\":\"glavadmin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"cs\",\"@id\":\"https:\/\/functiontranslator.com\/no\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/03ccd9347c5339db75deede5a8c5b2bf1d40e0bce26a5251fcaac6331d381db8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/03ccd9347c5339db75deede5a8c5b2bf1d40e0bce26a5251fcaac6331d381db8?s=96&d=mm&r=g\",\"caption\":\"glavadmin\"},\"sameAs\":[\"https:\/\/functiontranslator.com\"],\"url\":\"https:\/\/functiontranslator.com\/cs\/author\/glavadmin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Funkce REGISTER.ID (ID.REGISTRU) v Excelu: jak funguje, primjeri kori\u0161tenja formule","description":"Opis funkcije REGISTER.ID (ID.REGISTRU) u Excelu i Google tablicama. Sintaksa, parametri funkcije te prakti\u010dni primjeri.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/functiontranslator.com\/cs\/register-id\/","og_locale":"cs_CZ","og_type":"article","og_title":"Funkce REGISTER.ID (ID.REGISTRU) v Excelu: jak funguje, primjeri kori\u0161tenja formule","og_description":"Opis funkcije REGISTER.ID (ID.REGISTRU) u Excelu i Google tablicama. Sintaksa, parametri funkcije te prakti\u010dni primjeri.","og_url":"https:\/\/functiontranslator.com\/cs\/register-id\/","og_site_name":"Function Translator","article_published_time":"2025-07-15T13:34:44+00:00","article_modified_time":"2021-02-26T10:02:30+00:00","author":"glavadmin","twitter_card":"summary_large_image","twitter_title":"Funkce REGISTER.ID (ID.REGISTRU) v Excelu: jak funguje, primjeri kori\u0161tenja formule","twitter_misc":{"Napsal(a)":"glavadmin","Odhadovan\u00e1 doba \u010dten\u00ed":"2 minuty"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/functiontranslator.com\/cs\/register-id\/","url":"https:\/\/functiontranslator.com\/cs\/register-id\/","name":"Funkce REGISTER.ID (ID.REGISTRU) v Excelu: jak funguje, primjeri kori\u0161tenja formule","isPartOf":{"@id":"https:\/\/functiontranslator.com\/no\/#website"},"datePublished":"2025-07-15T13:34:44+00:00","dateModified":"2021-02-26T10:02:30+00:00","author":{"@id":"https:\/\/functiontranslator.com\/no\/#\/schema\/person\/87663eece497ca58643166ecb09f1389"},"description":"Opis funkcije REGISTER.ID (ID.REGISTRU) u Excelu i Google tablicama. Sintaksa, parametri funkcije te prakti\u010dni primjeri.","breadcrumb":{"@id":"https:\/\/functiontranslator.com\/cs\/register-id\/#breadcrumb"},"inLanguage":"cs","potentialAction":[{"@type":"ReadAction","target":["https:\/\/functiontranslator.com\/cs\/register-id\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/functiontranslator.com\/cs\/register-id\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Funkce aplikace Excel","item":"https:\/\/functiontranslator.com\/cs\/"},{"@type":"ListItem","position":2,"name":"Dopln\u011bk a automatizace","item":"https:\/\/functiontranslator.com\/cs\/doplnek-a-automatizace\/"},{"@type":"ListItem","position":3,"name":"ID.REGISTRU"}]},{"@type":"WebSite","@id":"https:\/\/functiontranslator.com\/no\/#website","url":"https:\/\/functiontranslator.com\/no\/","name":"Function Translator","description":"Excel function translator","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/functiontranslator.com\/no\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"cs"},{"@type":"Person","@id":"https:\/\/functiontranslator.com\/no\/#\/schema\/person\/87663eece497ca58643166ecb09f1389","name":"glavadmin","image":{"@type":"ImageObject","inLanguage":"cs","@id":"https:\/\/functiontranslator.com\/no\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/03ccd9347c5339db75deede5a8c5b2bf1d40e0bce26a5251fcaac6331d381db8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/03ccd9347c5339db75deede5a8c5b2bf1d40e0bce26a5251fcaac6331d381db8?s=96&d=mm&r=g","caption":"glavadmin"},"sameAs":["https:\/\/functiontranslator.com"],"url":"https:\/\/functiontranslator.com\/cs\/author\/glavadmin\/"}]}},"_links":{"self":[{"href":"https:\/\/functiontranslator.com\/cs\/wp-json\/wp\/v2\/posts\/5777","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/functiontranslator.com\/cs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/functiontranslator.com\/cs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/functiontranslator.com\/cs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/functiontranslator.com\/cs\/wp-json\/wp\/v2\/comments?post=5777"}],"version-history":[{"count":2,"href":"https:\/\/functiontranslator.com\/cs\/wp-json\/wp\/v2\/posts\/5777\/revisions"}],"predecessor-version":[{"id":30915,"href":"https:\/\/functiontranslator.com\/cs\/wp-json\/wp\/v2\/posts\/5777\/revisions\/30915"}],"wp:attachment":[{"href":"https:\/\/functiontranslator.com\/cs\/wp-json\/wp\/v2\/media?parent=5777"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/functiontranslator.com\/cs\/wp-json\/wp\/v2\/categories?post=5777"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/functiontranslator.com\/cs\/wp-json\/wp\/v2\/tags?post=5777"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}