Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default verify external data before importing

Hi there ,

In my small application i'd like to import a .cvs , .xls or .txt file into a
known sheet.

I'd like to verify the file that will be imported before the data is
imported.
for example : headers need to match or number of columns must be 5 , etc

These are the steps to follow :
1) Click a button to import
2) open the file for verification and verify some data with criteria.
3) if verification is correct = import data , else close file and stop
importing.

Can someone help me a little bit with this one? or point me in the right
direction.
Thanks
Marmo


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default verify external data before importing

Hi Don ,
I was thinking about this:
Or to open the file before importing or importing it into an "importpage".
Maybe i can use an Msquery file to import from a fixed path/file folder.
ie: C:\DbFolder\xlsfile.xls

I get a rough idea how to accomplish this.
If you or someone else have another idea , i'll be glad to hear it.
Thanks for the reply
MarMo


"Don Guillett" wrote in message
...

Might be easier to have the macro import the file to a page and then look
to see if you want to copy to the main page.
--
Don Guillett
SalesAid Software

"MarMo" wrote in message
...
Hi there ,

In my small application i'd like to import a .cvs , .xls or .txt file
into a known sheet.

I'd like to verify the file that will be imported before the data is
imported.
for example : headers need to match or number of columns must be 5 , etc

These are the steps to follow :
1) Click a button to import
2) open the file for verification and verify some data with criteria.
3) if verification is correct = import data , else close file and stop
importing.

Can someone help me a little bit with this one? or point me in the right
direction.
Thanks
Marmo






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default verify external data before importing

Don ,
I will try this out.
If I have a sample , i'll post again.
Many thanks
MarMo

"Don Guillett" wrote in message
...
Try expanding on this idea.

goto the urlright click in the tableimport to excelif desired, record a
macro while doing

--
Don Guillett
SalesAid Software

"MarMo" wrote in message
...
Hi Don ,
I was thinking about this:
Or to open the file before importing or importing it into an
"importpage".
Maybe i can use an Msquery file to import from a fixed path/file folder.
ie: C:\DbFolder\xlsfile.xls

I get a rough idea how to accomplish this.
If you or someone else have another idea , i'll be glad to hear it.
Thanks for the reply
MarMo


"Don Guillett" wrote in message
...

Might be easier to have the macro import the file to a page and then
look to see if you want to copy to the main page.
--
Don Guillett
SalesAid Software

"MarMo" wrote in message
...
Hi there ,

In my small application i'd like to import a .cvs , .xls or .txt file
into a known sheet.

I'd like to verify the file that will be imported before the data is
imported.
for example : headers need to match or number of columns must be 5 ,
etc

These are the steps to follow :
1) Click a button to import
2) open the file for verification and verify some data with criteria.
3) if verification is correct = import data , else close file and stop
importing.

Can someone help me a little bit with this one? or point me in the
right direction.
Thanks
Marmo










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
Importing External Data Fgbdrum Excel Discussion (Misc queries) 0 July 19th 07 05:12 PM
Importing External Data Donbenz1 Excel Discussion (Misc queries) 0 June 14th 07 09:36 PM
Importing External Data Paul Hammond Excel Discussion (Misc queries) 0 December 15th 05 10:28 PM
Importing external data R. Choate Excel Programming 12 September 30th 05 08:44 PM
Importing external data Glen Mettler[_4_] Excel Programming 2 November 13th 04 04:43 PM


All times are GMT +1. The time now is 02:26 AM.

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

About Us

"It's about Microsoft Excel"