Apakah bisa tranfer File dari VBA Excel menuju Excel Spreadsheet?

12 views
Skip to first unread message

CENEL YUSUF MANURUNG

unread,
Feb 3, 2021, 7:41:27 AM2/3/21
to milis Belajar-Excel
Sore Mr Kid,


Apakah bisa tranfer File dari VBA Excel menuju Excel Spreadsheet?
Bantu skripnya dong
Terimakasih



Regards,
YM

Mr. Kid

unread,
Feb 3, 2021, 10:50:41 AM2/3/21
to milis Belajar-Excel
Maksudnya save as ?

Workbook yang VBA nya sedang bekerja :
    Thisworkbook.saveas "nama baru file fullname", enumFileFormat
Workbook yang sedang terbuka di-instance excel application yang sama bernama kid.xlsx
    Workbooks("kid.xlsx").saveas  "nama baru file fullname", enumFileFormat
Workbook kid.xlsx yang ada di D:\folder\subfolder tapi akan dikerjakan di instance excel application yang berbeda dengan yang vba nya sedang bekerja :
   dim wbkApp as workbook, xlAppLain as application, wbkLain as workbook
   set wbkapp=thisworkbook
   set xlapplain=new excel.application
   set wbklain=xlapplain.workbooks.open("d:\folder\subfolder\kid.xlsx",2,true)   'dibuka tanpa update file dan dalam keadaan read only
   wbklain.saveas  "nama baru file fullname", enumFileFormat
   wbklain.close false   'tutup tanpa di-save (setelah save-as)
   xlapplain.quit
   wbkapp.activate

Untuk enumFileFormat bisa dilihat dan dipilih disini sesuai kebutuhan.

Regards,
Kid





--
You received this message because you are subscribed to the Google Groups "milis Belajar-Excel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to milis-belajar-e...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/milis-belajar-excel/d32b0503-bcb7-4d04-addc-d9f1de7ff941n%40googlegroups.com.

CENEL YUSUF MANURUNG

unread,
Feb 4, 2021, 12:54:56 AM2/4/21
to milis Belajar-Excel
Dear Mr Kid

Yang saya maksud transfer file excel biasa menuju file spreadsheet.
seperti terlampir. Mohon dibantu
Terimakasih



Regards,
Yusuf
TRANSFER FILE.xlsb
Reply all
Reply to author
Forward
0 new messages