prithviravi
New Member
- Joined
- Apr 7, 2014
- Messages
- 1
I'm making a macro for a computing assigment for excel. When i run the macro i get the error 'Run-Time Error 438 - Object doesn't support this property or methord' This is in relation to the picture which i have to include in the assigment. I created a new worksheet tab and put the picture there, i started recording the macro and then copied and pasted the picture into a new worksheet tab where i made my macro. This is my VBA:
Selection.Borders(xlInsideVertical).LineStyle = xlNone
Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
Sheets("Sheet2").Select
Selection.Copy
Sheets("Sheet3").Select
ActiveSheet.Paste
Selection.ShapeRange.IncrementLeft 58.8
Selection.ShapeRange.IncrementTop 6
ActiveCell.Offset(14, 1).Range("A1").Select
The bolded area is my problem, how do i fix it?
Thanks all
Selection.Borders(xlInsideVertical).LineStyle = xlNone
Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
Sheets("Sheet2").Select
Selection.Copy
Sheets("Sheet3").Select
ActiveSheet.Paste
Selection.ShapeRange.IncrementLeft 58.8
Selection.ShapeRange.IncrementTop 6
ActiveCell.Offset(14, 1).Range("A1").Select
The bolded area is my problem, how do i fix it?
Thanks all