ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Need VBA macro to return active cell address (R1C1) (https://www.excelbanter.com/excel-programming/336177-need-vba-macro-return-active-cell-address-r1c1.html)

Chuck Hague[_2_]

Need VBA macro to return active cell address (R1C1)
 
Need to copyu current row of one spreadsheet to another after moving to
column A of that row.

Tom Ogilvy

Need VBA macro to return active cell address (R1C1)
 
Need VBA macro to return active cell address (R1C1)
msgbox ActiveCell.Address(1,1,xlR1C1)


Need to copyu current row of one spreadsheet to another after moving to
column A of that row.


ActiveCell.EntireRow.copy Destination:=worksheets("sheet2"). _
Cells(rows.count,"A").End(xlup)(2)

or

Sub ABCDEFGH()
ActiveCell.EntireRow.Copy
Worksheets("sheet2").Select
Cells(ActiveCell.Row, "A").Select
ActiveSheet.Paste

End Sub


would be different interpretation.

--
Regards,
Tom Ogilvy



"Chuck Hague" <Chuck wrote in message
...
Need to copyu current row of one spreadsheet to another after moving to
column A of that row.




Chuck Hague

Need VBA macro to return active cell address (R1C1)
 
Thank you, that does very nicely.

Chuck Hague

"Tom Ogilvy" wrote:

Need VBA macro to return active cell address (R1C1)

msgbox ActiveCell.Address(1,1,xlR1C1)


Need to copyu current row of one spreadsheet to another after moving to
column A of that row.


ActiveCell.EntireRow.copy Destination:=worksheets("sheet2"). _
Cells(rows.count,"A").End(xlup)(2)

or

Sub ABCDEFGH()
ActiveCell.EntireRow.Copy
Worksheets("sheet2").Select
Cells(ActiveCell.Row, "A").Select
ActiveSheet.Paste

End Sub


would be different interpretation.

--
Regards,
Tom Ogilvy



"Chuck Hague" <Chuck wrote in message
...
Need to copyu current row of one spreadsheet to another after moving to
column A of that row.






All times are GMT +1. The time now is 08:49 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com