Hi all
I am struggling with this an was wondering if anyone had a quick example.
Using vba, I want to select cell a1 & f7 from sheet1 and copy to the next blank row in sheet2?
Excel 2010
Or could someone start me with just copying cell a1 and b1?
Where should F7 be copied? In B2 of sheet2?
Cheers,
Arlette
If I helped, Don't forget to add to my reputation (click on the star below the post)
Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
Use code tags when posting your VBA code: [code] Your code here [/code]
A common process, something like this should get you going:
Sub ArchiveData() Dim NR As Long With Sheets("Sheet2") NR = .Range("A" & .Rows.count).End(xlUp).Row + 1 .Range("A" & NR).Value = Sheets("Sheet1").Range("A1").Value .Range("B" & NR).Value = Sheets("Sheet1").Range("F7").Value End With End Sub
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use theicon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
“None of us is as good as all of us” - Ray Kroc
“Actually, I *am* a rocket scientist.” - JB (little ones count!)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks