Hai Dedi,
Bunyinya :
sheets("nama sheet").range("c4:f4").copy
sheets("nama sheet").range("c13:c23").pastespecial xlpasteformulas
sheets("nama sheet").range("c13:f23").calculate
sheets("nama sheet").range("c13:f23").copy
sheets("nama sheet").range("c13:f23").pastespecial xlpastevalues
Dibentuk dalam blok :
with sheets("nama sheet")
.range("c4:f4").copy
.range("c13:c23").pastespecial xlpasteformulas
with .range("c13:f23")
.calculate
.copy
.pastespecial xlpastevalues
end with
end with
Ada juga yang bgini :
sheets("nama sheet").range("c4:f4").copy sheets("nama
sheet").range("c13:c23")
sheets("nama sheet").range("c13:f23").calculate
sheets("nama sheet").range("c13:f23").value=sheets("nama
sheet").range("c13:f23").value
yang jika dibentuk dalam blok :
with sheets("nama sheet")
.range("c4:f4").copy .range("c13:c23")
with .range("c13:f23")
.calculate
.value=.value
end with
end with
Andai kalkulasi Excel selalu dalam keadaan automatic *dan *proses komputasi
formula masih cepat, baris calculate bisa dihilangkan.
Regards,
Kid
2016-05-14 17:00 GMT+07:00 'Dedi Ridjan' [email protected]
[belajar-excel] <[email protected]>:
>
>
> Selamat sore para master Excel.
>
>
>
> Saya ada pertanyaan tentang membuat formula menggunakan macro. Biasanya
> saya meng copy formula yang sudah saya buat cell C4:F4 dan di copykan ke
> ke cell C13:F23.
>
> Saya ingin formulanya tidak ada di work sheet melainkan hanya menggunakan
> macro, sehingga dalam cell C13:F23 hanya hasilnya yang kelihatan atau tidak
> lagi berbentuk formula.
>
> Kalau menggunakan cara saya yang sekarang ini prosesnya sangat lama sekali
> mungkin karena formulanya banyak sekali.
>
> Saya ucapkan terimakasih sebelumnya pada para master
>
>
>
>
>
>
>
> ------------------------------
> [image: Avast logo] <https://www.avast.com/antivirus>
>
> Email ini telah diperiksa untuk mendeteksi virus oleh perangkat lunak
> antivirus Avast.
> www.avast.com <https://www.avast.com/antivirus>
>
>
>
<<attachment: image003.jpg>>

