L
Lee Jeffery
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
deep breath (thank you for this excellent advice, Brian!) and started
at the beginning. I have performed the steps manually and recorded this
as a macro. The code that has been generated for copying and pasting (1
cell only for this demo) follows:
Sub Test2()
Range("B2").Select
Selection.Copy
Workbooks.Open FileName:="D:\Worksheet in Basis (1) Database.xls"
ActiveSheet.Shapes("Picture 12").Select
ActiveSheet.Paste
Application.CutCopyMode = False
ActiveWorkbook.Save
ActiveWorkbook.Close
End Sub
The problem with this method is that it is pasting a picture into the
destination workbook instead of copying the cell value from the source
cell B2 into the destination cell C4.
If I can get the data to paste into cells correctly I know I need to
build a loop for the next action of repeating the whole thing with a
new source workbook (perhaps I need more coffee). Please help.
data to a new workbook. I have now had a number of coffees, taken a
deep breath (thank you for this excellent advice, Brian!) and started
at the beginning. I have performed the steps manually and recorded this
as a macro. The code that has been generated for copying and pasting (1
cell only for this demo) follows:
Sub Test2()
Range("B2").Select
Selection.Copy
Workbooks.Open FileName:="D:\Worksheet in Basis (1) Database.xls"
ActiveSheet.Shapes("Picture 12").Select
ActiveSheet.Paste
Application.CutCopyMode = False
ActiveWorkbook.Save
ActiveWorkbook.Close
End Sub
The problem with this method is that it is pasting a picture into the
destination workbook instead of copying the cell value from the source
cell B2 into the destination cell C4.
If I can get the data to paste into cells correctly I know I need to
build a loop for the next action of repeating the whole thing with a
new source workbook (perhaps I need more coffee). Please help.