<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Macro no error message in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-no-error-message/m-p/1613059#M1247341</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have this macro code that i build by my own, but its not working and its not showing any error message.&lt;/P&gt;&lt;P&gt;the functioning of the program is this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;The program will loop through “Value_Indicator” filed (it has 4 values) and inside each of them will loop through Region’s field (with 11 values). In the meantime when QV is Looping will export every object into a template then change the name of the file for one inside QV save the PTT and close it. Finally with a msgbox print in the screen the path where the file is.&lt;/P&gt;&lt;P&gt;Do you have any idea about what is wrong?&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sub fristTryDeck
	
	SET x=ActiveDocument.Fields("Value_Indicator").GetPossibleValues
	SET y=ActiveDocument.Fields("Region").GetPossibleValues
	
	For u=0 to x.count-1
		'msgbox(x.Item(u).Text)
		ActiveDocument.Fields("Value_Indicator").Select x.item(u).Text
		For i=0 to y.count-1
			ActiveDocument.Fields("Region").Select y.item(i).Text
			'msgbox(y.Item(i).Text)
			Set objPPT = CreateObject("PowerPoint.Application")
            objPPT.Presentations.Open "C:PathTemplate\fileName.pptx"
			objPPT.Visible = True
			Set objPresentation = objPPT.Presentations.Add
			PPSlideNo = 1
			'For i = 0 to activedocument.noofsheets -1
			Set PPSlide = objPresentation.Slides.Add(PPSlideNo,12)
			'ActiveDocument.GetApplication.WaitForIdle
			ActiveDocument.ActiveSheet.CopyBitmapToClipboard
			PPSlide.Shapes.Paste
			Set PPSlide = Nothing
			Set PPPres = Nothing
			Set PPApp = Nothing
			'activedocument.nexttab
			'PPSlideNo = PPSlideNo + 1
			'NEXT
		Next
	Next
	
	SET DVA=ActiveDocument.Variables("vDn")
    getVariabe = DVA.GetContent.String 
    filePath = "C:PathTemplate\fileName.pptx"
    objPPT.ActivePresentationSaveAs filePath
    objPPT.ActivePresentation.Close
	
	popFinal = "Document completed in folder: " + filePath
    msgbox popFinal
    
End Sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The outcome is this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/17144i321123E54AD36C80/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;Thanks in advanced.&lt;/P&gt;</description>
    <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
    <dc:creator>darkshadow91223</dc:creator>
    <dc:date>2026-01-26T18:19:17Z</dc:date>
    <item>
      <title>Macro no error message</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-no-error-message/m-p/1613059#M1247341</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have this macro code that i build by my own, but its not working and its not showing any error message.&lt;/P&gt;&lt;P&gt;the functioning of the program is this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;The program will loop through “Value_Indicator” filed (it has 4 values) and inside each of them will loop through Region’s field (with 11 values). In the meantime when QV is Looping will export every object into a template then change the name of the file for one inside QV save the PTT and close it. Finally with a msgbox print in the screen the path where the file is.&lt;/P&gt;&lt;P&gt;Do you have any idea about what is wrong?&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sub fristTryDeck
	
	SET x=ActiveDocument.Fields("Value_Indicator").GetPossibleValues
	SET y=ActiveDocument.Fields("Region").GetPossibleValues
	
	For u=0 to x.count-1
		'msgbox(x.Item(u).Text)
		ActiveDocument.Fields("Value_Indicator").Select x.item(u).Text
		For i=0 to y.count-1
			ActiveDocument.Fields("Region").Select y.item(i).Text
			'msgbox(y.Item(i).Text)
			Set objPPT = CreateObject("PowerPoint.Application")
            objPPT.Presentations.Open "C:PathTemplate\fileName.pptx"
			objPPT.Visible = True
			Set objPresentation = objPPT.Presentations.Add
			PPSlideNo = 1
			'For i = 0 to activedocument.noofsheets -1
			Set PPSlide = objPresentation.Slides.Add(PPSlideNo,12)
			'ActiveDocument.GetApplication.WaitForIdle
			ActiveDocument.ActiveSheet.CopyBitmapToClipboard
			PPSlide.Shapes.Paste
			Set PPSlide = Nothing
			Set PPPres = Nothing
			Set PPApp = Nothing
			'activedocument.nexttab
			'PPSlideNo = PPSlideNo + 1
			'NEXT
		Next
	Next
	
	SET DVA=ActiveDocument.Variables("vDn")
    getVariabe = DVA.GetContent.String 
    filePath = "C:PathTemplate\fileName.pptx"
    objPPT.ActivePresentationSaveAs filePath
    objPPT.ActivePresentation.Close
	
	popFinal = "Document completed in folder: " + filePath
    msgbox popFinal
    
End Sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The outcome is this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/17144i321123E54AD36C80/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;Thanks in advanced.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-no-error-message/m-p/1613059#M1247341</guid>
      <dc:creator>darkshadow91223</dc:creator>
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Macro no error message</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-no-error-message/m-p/1613063#M1247342</link>
      <description>&lt;P&gt;See if the below link will help to resolve your issue:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Documents/Prepare-PPT-from-different-QVW-objects-with-Macro/ta-p/1479397" target="_blank"&gt;https://community.qlik.com/t5/QlikView-Documents/Prepare-PPT-from-different-QVW-objects-with-Macro/ta-p/1479397&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 21:29:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-no-error-message/m-p/1613063#M1247342</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2019-08-15T21:29:32Z</dc:date>
    </item>
  </channel>
</rss>

