VBA Error 438, PPT slide movement using values in Excel -


with code below receiving 438 error when try move slide section has been created. last 4 lines of code. sorry if code not clear, new vba.

private sub copyandpastetoppt(counter integer) dim nextshape integer dim issuename string dim issuedesc string dim cfonumber string dim indname string dim cat1 variant      issuename = worksheets("data_sheet").cells(counter, 1)     issuedesc = worksheets("data_sheet").cells(counter, 3)     cfonumber = worksheets("data_sheet").cells(counter, 5)     indname = worksheets("data_sheet").cells(counter, 7)     cat1 = worksheets("data_sheet").cells(counter, 9)      set pp_slide = pp_file.slides(counter + 1)      pp_slide.shapes.addshape type:=msoshaperectangle, _          left:=0, top:=0, width:=276, height:=59      nextshape = pp_slide.shapes.count      pp_slide.shapes(nextshape).textframe.textrange.text = issuename     pp_slide.shapes(nextshape).textframe.textrange.font.size = 16     pp_slide.shapes(nextshape).textframe.textrange.font.color = vbblack     pp_slide.shapes(nextshape).textframe.verticalanchor = msoanchormiddle      pp_slide.shapes.addshape type:=msoshaperectangle, _          left:=276, top:=0, width:=153, height:=59      nextshape = pp_slide.shapes.count      pp_slide.shapes(nextshape).textframe.textrange.text = issuedesc     pp_slide.shapes(nextshape).textframe.textrange.font.size = 16     pp_slide.shapes(nextshape).textframe.textrange.font.color = vbwhite     pp_slide.shapes(nextshape).textframe.textrange.paragraphformat.spacebefore = 0     pp_slide.shapes(nextshape).textframe.verticalanchor = msoanchormiddle     pp_slide.shapes(nextshape).fill.backcolor.rgb = rgb(0, 0, 0)      pp_slide.shapes.addshape type:=msoshaperectangle, _         left:=199, top:=59, width:=77, height:=30      nextshape = pp_slide.shapes.count      pp_slide.shapes(nextshape).textframe.textrange.text = cfonumber     pp_slide.shapes(nextshape).textframe.textrange.font.size = 10     pp_slide.shapes(nextshape).textframe.textrange.font.bold = false     pp_slide.shapes(nextshape).textframe.textrange.font.color = vbblack     pp_slide.shapes(nextshape).textframe.textrange.paragraphformat.spacebefore = 0     pp_slide.shapes(nextshape).textframe.verticalanchor = msoanchormiddle     pp_slide.shapes(nextshape).line.visible = false      pp_slide.shapes.addshape type:=msoshaperectangle, _         left:=597, top:=507, width:=123, height:=18      nextshape = pp_slide.shapes.count      pp_slide.shapes(nextshape).textframe.textrange.text = indname     pp_slide.shapes(nextshape).textframe.textrange.font.size = 10     pp_slide.shapes(nextshape).textframe.textrange.font.italic = true     pp_slide.shapes(nextshape).textframe.textrange.font.bold = false     pp_slide.shapes(nextshape).textframe.textrange.font.color = vbblack     pp_slide.shapes(nextshape).textframe.textrange.paragraphformat.spacebefore = 0     pp_slide.shapes(nextshape).textframe.verticalanchor = msoanchormiddle     pp_slide.shapes(nextshape).line.visible = false      if cat1 = "center consoles"      pp_slide.movetosection "center consoles"      end if  end sub 


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -