Need a macro that copies cell AF6 in Sheet1
Then pastes it into the next empty cell in Column A, in sheet 2
Or if there is another way of doing this, please post. I am a newbie at this Excel stuff
Here is the file: Bingo.xlsm
Thanks
Need a macro that copies cell AF6 in Sheet1
Then pastes it into the next empty cell in Column A, in sheet 2
Or if there is another way of doing this, please post. I am a newbie at this Excel stuff
Here is the file: Bingo.xlsm
Thanks
Last edited by killerthun; 08-16-2012 at 01:15 PM. Reason: Added the spreadsheet
If the column of data has no missing data, below will take you to the bottom of the column:
END DOWN ARROW
DOWN ARROW
Click on star (*) below if this helps
I'm not sure where to put those.
I think it would be better if it the cell AF6 in Sheet1 could be copied and then pasted in the 1st empty cell in column A in Sheet2
Is that even possible?
I've seen some amazing things in excel and this should be cake :P
Try this macro:
![]()
Sub Macro1() Sheets("Sheet1").Select Application.Goto Reference:="R6C32" Selection.Copy Sheets("Sheet2").Select Application.Goto Reference:="R1C1" Selection.End(xlDown).Select ActiveCell.Offset(1, 0).Range("A1").Select ActiveSheet.Paste End Sub
Last edited by jeffreybrown; 08-16-2012 at 12:31 PM.
I tried that and I get "Run-time error '1004', Application-defined or object-defined error
Not sure if it's a version issue
Try
![]()
Sub copy_AF6() Dim wsSrc As Worksheet Dim wsDest As Worksheet Dim Rng As Range Dim LR As Long Set wsSrc = Sheets("Sheet1") Set wsDest = Sheets("Sheet2") Set Rng = wsSrc.Range("AF6") LR = wsDest.Range("A" & Rows.Count).End(xlUp).Row + 1 Rng.Copy wsDest.Range("A" & LR).PasteSpecial xlPasteValues Application.CutCopyMode = False End Sub
HTH
Regards, Jeff
Try this:
Sub Macro3()
Sheets("Sheet1").Select
Application.Goto Reference:="R6C32"
Selection.Copy
Sheets("Sheet2").Select
Application.Goto Reference:="R1C1"
Selection.End(xlDown).Select
ActiveCell.Offset(1, 0).Range("A1").Select
Selection.PasteSpecial Paste:=xlPasteValues
End Sub
It works for me
Last edited by K m; 08-16-2012 at 12:57 PM.
Ah. Jeff, yours works like a charm. Thank you so much.
K m, thanks also for helping me on this!
You are very welcome and thanks for the feedback![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks