D
davidgary.taylor
Please, help!
I am trying to recreate a macro that opens a workbook, goes to Sheet
1, pastes clipboard info into A1, then moves to B1, then saves and
closes the file.
I know how to make the file automatic and how to get it to open and
close (Auto_Open), but I cannot remember how to get the macro to move
from cell to cell (left-to right). What happens is that when I do a
recorded macro and then try to rerun it; it will paste into A1 and
then will tab over to B1. Then upon the next time that I call up the
spreadsheet, it will even paste to B1, but will not move further from
that spot.
I then look at the macro and it shows the following:
***********************************************
Sub auto_open()
'
' pasteagain Macro
' Macro recorded 08/03/2007 by A100132
'
'
Worksheets("Sheet1").Activate
ActiveSheet.Paste
Application.CutCopyMode = False
Selection.Range ("A1")
ActiveWorkbook.Save
ActiveWorkbook.Close
End Sub
*************************************************
It looks as though it is hanging up at the Selection.Range ("A1")
but, by golly, I just can't remember what I did to get this to work in
the past. Can anyone help me?
Thanks,
David
I am trying to recreate a macro that opens a workbook, goes to Sheet
1, pastes clipboard info into A1, then moves to B1, then saves and
closes the file.
I know how to make the file automatic and how to get it to open and
close (Auto_Open), but I cannot remember how to get the macro to move
from cell to cell (left-to right). What happens is that when I do a
recorded macro and then try to rerun it; it will paste into A1 and
then will tab over to B1. Then upon the next time that I call up the
spreadsheet, it will even paste to B1, but will not move further from
that spot.
I then look at the macro and it shows the following:
***********************************************
Sub auto_open()
'
' pasteagain Macro
' Macro recorded 08/03/2007 by A100132
'
'
Worksheets("Sheet1").Activate
ActiveSheet.Paste
Application.CutCopyMode = False
Selection.Range ("A1")
ActiveWorkbook.Save
ActiveWorkbook.Close
End Sub
*************************************************
It looks as though it is hanging up at the Selection.Range ("A1")
but, by golly, I just can't remember what I did to get this to work in
the past. Can anyone help me?
Thanks,
David