Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default Determining Excel Formats quickly.

Hello,

I have an excel file that is automatically loaded into a database. However,
from time to time, the file rejects due to format errors. I can not tell what
these formatting errors are from just looking at the data. Is there a
function, validation or macro that I can use to ensure the workbook is
formatted correctly before the system picks it up to prevent rejection of the
file?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,365
Default Determining Excel Formats quickly.

I doubt that there's a general purpose format validating macro laying around,
just too many possible variations and combinations of formats to address in
such fashion.

Probably your best bet is to either write a custom macro to validate and set
formats the way you need that could be run prior to exporting for use by the
database.

If you're not proficient with VBA coding, the 'easy' way is to sit down
(plan this out or practice a couple of times before starting the real-deal)
and start recording a macro and go through the entire workbook setting the
formats the way they must be for the database to accept them. Then run that
macro prior to exporting the data for use by the database.

If the worksheet names and cell locations needing formatting are always the
same, but may reside in different workbooks, you can record the macro and
direct the macro to be stored in your personal.xls workbook so it can be used
on many different .xls files in the future.

Hope this helps some.

"cardosol" wrote:

Hello,

I have an excel file that is automatically loaded into a database. However,
from time to time, the file rejects due to format errors. I can not tell what
these formatting errors are from just looking at the data. Is there a
function, validation or macro that I can use to ensure the workbook is
formatted correctly before the system picks it up to prevent rejection of the
file?

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
how do I quickly insert numbers 1 to 100 in a column in Excel? Terri Excel Discussion (Misc queries) 7 April 2nd 23 04:27 PM
Programmatically determining corrupt excel files Greg Luce[_2_] Excel Discussion (Misc queries) 0 December 14th 07 06:19 PM
Determining current Time Zone In Excel Shaun_C Excel Discussion (Misc queries) 2 April 7th 06 06:29 PM
How do I quickly change text case in Excel? Llawler Excel Discussion (Misc queries) 3 January 18th 06 04:06 PM
how do I set up multiple (3,000) hyperlinks in excel quickly? basu Excel Worksheet Functions 3 December 13th 05 08:13 PM


All times are GMT +1. The time now is 03:32 PM.

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"