0% found this document useful (0 votes)
15 views4 pages

0 Nama Io Alamat Uiuuuu

The document contains code to input data from one sheet to another sheet in a spreadsheet. It copies data from cells in the "FORM INPUT" sheet, including the number, name, and address. It then pastes the data into empty rows on the "database" sheet. After inputting the data, it displays a message to confirm the data input was successful.

Uploaded by

eka 123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views4 pages

0 Nama Io Alamat Uiuuuu

The document contains code to input data from one sheet to another sheet in a spreadsheet. It copies data from cells in the "FORM INPUT" sheet, including the number, name, and address. It then pastes the data into empty rows on the "database" sheet. After inputting the data, it displays a message to confirm the data input was successful.

Uploaded by

eka 123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 4

0

NAMA io
ALAMAT uiuuuu
1

Sub simpan()
MasukanData
End Sub

Sub MasukanData()
Dim NamaPegawai As String
Dim Alamat, Nomor As String

'PILIH SHEET
Sheets("FORM INPUT").Select
Nomor = Range("G1").Text
NamaPegawai = Range("C3").Text
Alamat = Range("C4").Text

'MASUKAN DATA
Sheets("database").Select
jumlahData = Range("E1").Value
Rows(jumlahData + 2 & ":" & jumlahData + 2).Select
Selection.Copy
Rows(jumlahData + 3 & ":" & jumlahData + 3).Select
ActiveSheet.Paste
Application.CutCopyMode = False

'Masukan data
Range("A" & jumlahData + 3).Select
ActiveCell.FormulaR1C1 = Nomor
Range("B" & jumlahData + 3).Select
ActiveCell.FormulaR1C1 = NamaPegawai
Range("c" & jumlahData + 3).Select
ActiveCell.FormulaR1C1 = Alamat

Sheets("form input").Select
'pesan berhasil
MsgBox "Input Data Berhasil !", vbInformation, "Terimakasih !"
Range("C3").Select
End Sub
Terimakasih !"
Jumlah Record 4
NO NAMA Alamat
1 Satu da
1 io uiuuuu
1 io uiuuuu
1 io uiuuuu

You might also like