{"id":7474,"date":"2017-03-21T00:21:06","date_gmt":"2017-03-21T04:21:06","guid":{"rendered":"http:\/\/nycphantom.com\/journal\/?p=7474"},"modified":"2017-03-22T09:26:59","modified_gmt":"2017-03-22T13:26:59","slug":"cccny-directory-database","status":"publish","type":"post","link":"https:\/\/nycphantom.com\/journal\/?p=7474","title":{"rendered":"CCCNY Directory Database"},"content":{"rendered":"<p>An interesting attempt. Turning the tedious directory work in Excel &amp; Word into Access GUI.<\/p>\n<p><a href=\"http:\/\/-Int(-a\/b)\">Cool trick<\/a>: Round-up \/ Ceiling of a positive double:<br \/>\nIn VB.NET, using the fact that int() = floor()<br \/>\n-Int(-a\/b)<\/p>\n<p>It would appear that some MS Word pages do not follow the same line number limit as the rest of the pages. There's a <a href=\"https:\/\/www.askdavetaylor.com\/how_do_i_set_a_microsoft_word_document_to_be_exactly_25_lines_per_page_1\/\">math<\/a> (or <a href=\"https:\/\/wordribbon.tips.net\/T009948_An_Exact_Number_of_Lines_Per_Page.html\">here<\/a>) to make it work:<br \/>\nWord uses points. 72 points = 1 inch. Single line spacing is 120% of font size. This may be kind of tricky (footer\/header margins are not accounted for in the article, which I think they should). For some reason the margins left about 9.3\" of writing space per page, taking away 1.6\" which I have no clue how it came about. Or I may pursue a different approach programmatically.<\/p>\n<p>There was a problem in my code:<\/p>\n<p>I keep getting Run-time error '462':<br \/>\nThe remote server machine does not exist or is unavailable. Debug targets<br \/>\nObjWord.Selection .Paragraphs.TabStops<br \/>\n.Add Position:=InchesToPoints(1.5), Alignment:=wdAlignTabLeft<br \/>\n<a href=\"https:\/\/www.mrexcel.com\/forum\/excel-questions\/444470-error-462-plzzzz.html\">Solution<\/a>: ObjWord.InchesToPoints(1.5)<\/p>\n<p>So far so good, if the spacing calculation for getting every page to start with a new contact is still a problem, then perhaps it's better to program a page break into it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>An interesting attempt. Turning the tedious directory work in Excel &amp; Word into Access GUI. Cool trick: Round-up \/ Ceiling of a positive double: In VB.NET, using the fact that int() = floor() -Int(-a\/b) It would appear that some MS &hellip; <a href=\"https:\/\/nycphantom.com\/journal\/?p=7474\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,6],"tags":[],"class_list":["post-7474","post","type-post","status-publish","format-standard","hentry","category-projects","category-theologization"],"_links":{"self":[{"href":"https:\/\/nycphantom.com\/journal\/index.php?rest_route=\/wp\/v2\/posts\/7474","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nycphantom.com\/journal\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nycphantom.com\/journal\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nycphantom.com\/journal\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nycphantom.com\/journal\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7474"}],"version-history":[{"count":9,"href":"https:\/\/nycphantom.com\/journal\/index.php?rest_route=\/wp\/v2\/posts\/7474\/revisions"}],"predecessor-version":[{"id":7483,"href":"https:\/\/nycphantom.com\/journal\/index.php?rest_route=\/wp\/v2\/posts\/7474\/revisions\/7483"}],"wp:attachment":[{"href":"https:\/\/nycphantom.com\/journal\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7474"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nycphantom.com\/journal\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7474"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nycphantom.com\/journal\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7474"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}