How can I record a macro in excel that resizes my chart? -


i start record macro, click on chart, resize finish recording. problem recorded macro work on specific chart selected during recording.

is there way record macro works on selected chart? excel writes code:

sub resize() ' ' resize macro '  '     activesheet.shapes("diagram 6").height = 256.5354330709     activesheet.shapes("diagram 6").width = 405.3543307087 end sub 

thanks in advance!

select shape or chart , run this:

sub resize()     selection.height = 256.5354330709     selection.width = 405.3543307087 end sub 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -