Copying and pasting information using a form into next empty row on a different sheet

sheac

New Member
Joined
Oct 7, 2013
Messages
1
Hi,
I am struggling to copy some information which has been collected on a sheet called "course entry". I want to copy the information onto the next empty row on a different sheet called courses.

I have tried to re-record this macro numerous times and it still just replaces the same information in row 27.

In column A i also need the code to add the next record number eg if it is on 25, i need excel to realise the next row is 26.

This is the code from recording my macro

Sub savecoursenew()
'
' savecoursenew Macro
'

'
Sheets("Courses").Select
Range("B20").Select
Selection.End(xlDown).Select
Range("B27").Select
Sheets("Course Entry").Select
Range("B19:F19").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Courses").Select
Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _
xlNone, SkipBlanks:=False, Transpose:=False
End Sub


From reading other posts i think i need to use ofset but no idea where to put it or how to word it.

Sorry i have never learnt code

Any help would be greatly appreciated.
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
You could try this,

Code:
Sub CopytoBlank()
Sheets("Course Entry").Select
Range("B19:F19").Select

Sheets("Courses").Range("A" & Rows.Count).End(xlUp).Offset(1, 0).PasteSpecial xlPasteValues

End Sub

Give that a go, and welcome to the board.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,287
Members
452,631
Latest member
a_potato

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