button - excel VBA can't get spinbutton value -


i have several shapes (autoshapes, connectors, labels, spin buttons) in worksheet, , want write several parameters of each 1 sheet. can't spin buttons value code below (the message reads: object not admit property or method). however, if replace sshape.value sb_fr.value (sb_fr specific name of 1 of spin buttons) code works ok. value property different others properies, top, or width or left?

dim sshape shape = 0 each sshape in worksheets("sheet1").shapes     worksheets("sheet2").cells(i + 1, 1) = sshape.name     worksheets("sheet2").cells(i + 1, 2) = sshape.top     worksheets("sheet2").cells(i + 1, 3) = sshape.left     ss = split(sshape.name, "_")     if (ss(0)="sb")            'if shape spin button          worksheets("sheet2").cells(i + 1, 4) = sshape.value  'here problem     end if     i=i+1 next 


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -