Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default 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.




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I use the active cell address as a value mohavv Excel Discussion (Misc queries) 2 April 18th 08 06:16 AM
Get Address of Active Cell LarryL Excel Discussion (Misc queries) 3 February 16th 07 10:02 PM
Find address of active cell Dave Excel Worksheet Functions 5 September 6th 06 06:43 PM
Getting active cell address bmwmcrider Excel Programming 5 October 8th 03 03:23 PM
How to get the active cell address? d Excel Programming 1 August 25th 03 04:34 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"