<?xml version="1.0" encoding="iso-8859-1" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Dansk Regneark Forum : Macro til at gemme, med vælg &quot;Sti-funktion&quot;</title>
  <link>https://forum.excel-regneark.dk/</link>
  <description><![CDATA[Dette er et XML Feed af; Dansk Regneark Forum : Makro og VBA : Macro til at gemme, med vælg &quot;Sti-funktion&quot;]]></description>
  <pubDate>Sat, 05 Dec 2026 16:36:15 +0000</pubDate>
  <lastBuildDate>Thu, 24 Oct 2013 10:26:23 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.08</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://forum.excel-regneark.dk/RSS_post_feed.asp?TID=1413</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Dansk Regneark Forum]]></title>
   <url>https://forum.excel-regneark.dk/css_styles/Excel-regneark.dk/logo.png</url>
   <link>https://forum.excel-regneark.dk/</link>
  </image>
  <item>
   <title><![CDATA[Macro til at gemme, med vælg &quot;Sti-funktion&quot; : Hej alle,Jeg har en velfungerende...]]></title>
   <link>https://forum.excel-regneark.dk/macro-til-at-gemme-med-vlg-stifunktion_topic1413_post6607.html#6607</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=938">Loaduce</a><br /><strong>Emne:</strong> 1413<br /><strong>Sendt:</strong> 24.Okt.2013 kl. 10:26<br /><br />Hej alle,<div><br></div><div><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;">Jeg har en velfungerende macro, som kan gemme mine regneark i pdf og excel format. Nu har jeg så langt om længe fået finpudset mit regne ark således det er klar til at blive delt til alle i min afdeling. Her kommer dog et problem! Ikke alle er lige erfarne med brug af excel. Derfor vil jeg gerne gøre det så let som muligt for dem at skifte stien sådan at macro'en stadigvæk gemmer i de mapper de beder om. Jeg har forsøgt mig med en celle hvor man indsætter stien i, men det virkede ikke. Har i nogen forslag? Jeg tænker noget i retning af en msgbox, som spørg hvor vil du gemme efterfulgt af en "stifinder" hvor man så vælger de respektive mapper til de enkelte ark.</span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;">Giver det mening? Nedenfor ses en af de makro jeg benytter til at gemme med:</span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;">Sub gemmefunk()</span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;">'PDF</span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;">&nbsp; nr = &#091;Ledninger!J3&#093;</span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;">&nbsp; nr1 = &#091;Ledninger!K3&#093;</span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;">&nbsp; nr2 = &#091;Ledninger!L3&#093;</span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;">&nbsp; &nbsp; ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _</span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;">&nbsp; &nbsp; &nbsp; &nbsp; "E:\Regioner\Øst\Sag-1\Br. " &amp; nr &amp; " " &amp; nr1 &amp; " " &amp; nr2 &amp; ".pdf", Quality:=xlQualityStandard, _</span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;">&nbsp; &nbsp; &nbsp; &nbsp; IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:= _</span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;">&nbsp; &nbsp; &nbsp; &nbsp; True</span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;">'Excel</span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;">Dim part1 As String</span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;">Dim part2 As String</span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;">Dim part3 As String</span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;">Dim part4 As String</span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;">part1 = Range("I3").Value</span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;">part2 = Range("J3").Value</span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;">part3 = Range("K3").Value</span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;">part4 = Range("L3").Value</span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;">ActiveWorkbook.SaveAs Filename:= _</span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;">"E:\Regioner\Øst\Sag-1\" &amp; part1 &amp; " " &amp; part2 &amp; " " &amp; part3 &amp; " " &amp; part4 &amp; " .xlsm", FileFormat:= _</span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;">xlOpenXMLWorkbookMacroEnabled, CreateBackup:=False</span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;">&nbsp; &nbsp;&nbsp;</span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;">End Sub</span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"></div>]]>
   </description>
   <pubDate>Thu, 24 Oct 2013 10:26:23 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/macro-til-at-gemme-med-vlg-stifunktion_topic1413_post6607.html#6607</guid>
  </item> 
 </channel>
</rss>