Pasting objects in Excel

B

Blacktom

I'm using lots of arrows in an Excel spreadsheet, so I'm copying and pasting
the same arrow over and over. Every time I paste the object, it appears in
random locations, usually off-screen, so I have to scroll around to find it.
It doesn't seem to make a difference where I place the pointer, or whether I
use a right-click option or keyboard shortcut. How can I make objects paste
where I want them?
 
J

Joel

Use a simple macro

Sub Addline()

BeginXArrow = ActiveCell.Left
EndXArrow = BeginXArrow + 25
BeginYArrow = ActiveCell.Top
EndYArrow = BeginYArrow + 25

ActiveSheet.Shapes.Addline _
BeginXArrow, BeginYArrow, EndXArrow, EndYArrow
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top