Hi Lee
in your recorded macro you are selecting a picture:-
> ActiveSheet.Shapes("Picture 12").Select
before pasting
> ActiveSheet.Paste
try the following
replace the line
> ActiveSheet.Shapes("Picture 12").Select
with
Range("C4").select
(you might want to comment out the line - put an apostraphe in front of
it - rather than deleting it to ensure that something else that you want to
do doesn't break)
Let us know how you go
Cheers
JulieD
> Thank you to BrianB who assisted with a starting point for copying cell
> data to a new workbook. I have now had a number of coffees, taken a
[quoted text clipped - 21 lines]
> ---
> Message posted from http://www.ExcelForum.com/
Lee Jeffery - 23 Jun 2004 11:10 GMT
Thanks Julie.
I tried your suggestion but was still seeing these picture boxes.
cleared everything from the destination file and re-recorded the macro
This time I used the arrow keys to move to the required destinatio
cells and now have no funny "invisible" picture boxes and th
spreadsheet is behaving. I suspect the source file has a few "funnies
in it but this is out of my control.
The new macro looks like this for 2 cells copied and pasted to a ne
workbook then both workbooks are closed with only the destination boo
being saved.
Sub POLexport()
Range("B2").Select
Selection.Copy
Workbooks.Open FileName:="D:\Worksheet in Basis (1) Database.xls"
Range("C4").Select
ActiveSheet.Paste
ActiveWindow.ActivateNext
Range("B3").Select
Application.CutCopyMode = False
Selection.Copy
ActiveWindow.ActivateNext
Range("D4").Select
ActiveSheet.Paste
ActiveWindow.ActivateNext
ActiveWorkbook.Save
ActiveWorkbook.Close
ActiveWindow.Close
End Sub
It's a bit clumsy because I am a raw beginner at this but it works. No
I'll try to come up with a loop to make the next exported record past
to the destination cells in Row 5. I reckon I'll need a lot mor
coffee!
Thanks again
--
Message posted from http://www.ExcelForum.com
JulieD - 23 Jun 2004 12:59 GMT
Hi lee
looks fine to me, if you need further assistance - just ask.
Cheers
JulieD
> Thanks Julie.
>
[quoted text clipped - 35 lines]
> ---
> Message posted from http://www.ExcelForum.com/
Don Guillett - 23 Jun 2004 14:46 GMT
Suggest removing as many "selections" as possible. Some possibilities:
Range("B2").Copy
Workbooks.Open FileName:="D:\Worksheet in Basis (1) Database.xls"
Range("C4").Paste

Signature
Don Guillett
SalesAid Software
donaldb@281.com
> Thanks Julie.
>
[quoted text clipped - 35 lines]
> ---
> Message posted from http://www.ExcelForum.com/
Don,
Great suggestion. Many thanks for helping me tidy up
--
Message posted from http://www.ExcelForum.com
Don Guillett - 25 Jun 2004 12:20 GMT
glad to help.

Signature
Don Guillett
SalesAid Software
donaldb@281.com
> Don,
>
> Great suggestion. Many thanks for helping me tidy up!
>
> ---
> Message posted from http://www.ExcelForum.com/