Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 80
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 611
Default 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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Import data from another Worksheet David T Excel Discussion (Misc queries) 2 September 14th 07 05:48 PM
CAN I IMPORT DATA FROM A CLOSED FILE TO A NEW WORKSHEET Paul Excel Discussion (Misc queries) 1 January 11th 07 03:30 PM
Import external data in protected worksheet Yasmin New Users to Excel 3 August 27th 06 03:20 AM
Import data from another worksheet Satraj Excel Discussion (Misc queries) 0 March 23rd 06 04:46 PM
How do I selectively import data from another Excel worksheet? Emmanuel Excel Discussion (Misc queries) 1 May 9th 05 07:09 PM


All times are GMT +1. The time now is 05:57 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"