Copy a cell value from one worksheet to the first blank cell in column C on another worksheet & paste the value all the way down to the last used row

Bailey9

New Member
Joined
Nov 7, 2009
Messages
14
Hello
It has been a number of years since I have used VBA, and just can't figure out this SIMPLE solution.

What I have so far is:
Code
  1. ''''''''''''''''''''
  2. 'COPY THE FILE TYPES
  3. ''''''''''''''''''''
  4. Sheets("DO NOT DELETE").Select
  5. Range("A8").Select
  6. Selection.Copy
  7. Sheets("SUMMARY SHEET").Activate
  8. ActiveSheet.Range("C6000").Select
  9. ActiveSheet.Range("C6000").End(xlUp).Select
  10. ActiveCell.Offset(1, 0).Select
  11. ActiveSheet.PasteSpecial
  12. Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
  13. :=False, Transpose:=False
 
I got it!!! I added the last two lines and it works! Thank you for your help!!

''''''''''''''''''''
'COPY THE FILE TYPES
''''''''''''''''''''
Dim LastPopulatedRow As Long

Sheets("DO NOT DELETE").Select
Range("A8").Select
Selection.Copy
Sheets("SUMMARY SHEET").Activate
ActiveSheet.Range("C6000").Select
ActiveSheet.Range("C6000").End(xlUp).Select
ActiveCell.Offset(1, 0).Select
ActiveSheet.PasteSpecial
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False

LastPopulatedRow = Range("A" & Rows.Count).End(xlUp).Row
Range("C" & LastRow + 1 & ":" & "C" & LastPopulatedRow).FillDown
 
Upvote 0

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
OH, I now see you already replied to me, but I missed it. That works also!!! We are a good team. Have a good day!
 
Upvote 0

Forum statistics

Threads
1,214,830
Messages
6,121,835
Members
449,051
Latest member
excelquestion515

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top