![]() |
Import data into worksheet
Hi,
I'm looking for a macro that prompts and forces the user to import 2 files and copy it into two different worksheets. (If possible, when user denies to import files, Excel close) First file is a .csv file that. when user imports the file, It should be imported to wks1. Second file is a .xls file which goes to wks2. Any help? Thx. -- Message posted via http://www.officekb.com |
Import data into worksheet
You can use Data - Import external data - import data to read the data into a sheet. Once
set up, you need only refresh it (right-click the area and choose refresh). A macro could do the refresh (just record a macro as you do the refreshes). As for closing the workbook if the user "denies," when is this supposed to happen? -- Regards from Virginia Beach, Earl Kiosterud www.smokeylake.com Note: Top-posting has been the norm here. Some folks prefer bottom-posting. But if you bottom-post to a reply that's already top-posted, the thread gets messy. When in Rome... ----------------------------------------------------------------------- "saman110 via OfficeKB.com" <u35670@uwe wrote in message news:7878f2707df38@uwe... Hi, I'm looking for a macro that prompts and forces the user to import 2 files and copy it into two different worksheets. (If possible, when user denies to import files, Excel close) First file is a .csv file that. when user imports the file, It should be imported to wks1. Second file is a .xls file which goes to wks2. Any help? Thx. -- Message posted via http://www.officekb.com |
All times are GMT +1. The time now is 12:33 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com