Simple Copy and Paste Macro but can't get it right- Help!

antonchann

New Member
Joined
Jun 3, 2015
Messages
3
Dear All,

I know that there are countless examples of copy and paste macros and I have indeed gone through them and tried to figure it out on my own, but cant seem to get it right, and my deadline for this is looming. Would greatly appreciate your help!

Basically, i want to copy Range("A1:AQ39") from Sheets("Schedule"), to Sheets("Schedule Database")
- Schedule (A)


Next, I then need to edit information from Range(A1:AQ39) again and paste again on Sheets("Schedule Database")
- Schedule (B) but not replacing the information (Schedule A) that was copied before.

So far, what i have is:

Sub Test()
'
' test Macro
'


ActiveCell.Range("A1:AQ39").Select.Cut Sheets("Schedule Database").Range("A" & Rows.Count).End(xlUp).Offset(1, 0)

Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _
xlNone, SkipBlanks:=False, Transpose:=False



End Sub


Thanks in advance!!
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Michael M

Well-known Member
Joined
Oct 27, 2005
Messages
21,311
Office Version
  1. 365
  2. 2007
Platform
  1. Windows
don't have Excel at the moment, try
Code:
Sub Test()
Sheets("Schedule").Range("A1:AQ39").Copy
Sheets("Schedule Database").Select
Range("A" & Rows.Count).End(xlUp).Offset(1, 0).PasteSpecial Paste:=xlPasteValuesAndNumberFormats
End Sub
 

My Aswer Is This

Well-known Member
Joined
Jul 5, 2014
Messages
18,941
Office Version
  1. 2013
Platform
  1. Windows
I don't understand what "Schedule A" means:
Your quote:
to Sheets("Schedule Database")
- Schedule (A)
 

antonchann

New Member
Joined
Jun 3, 2015
Messages
3
It was meant to denote like schedule A, B and so on which i needed to record. But anyway, its been solved based on Michael's code. Thanks anyway! appreciate it!
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,167,652
Messages
5,854,960
Members
431,689
Latest member
jacker01

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
Top