There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer bios black screen blue screen blue screen of death boot computer connection crash css dell display driver drivers email error excel firefox firefox 3 game hard drive internet internet explorer itunes laptop linux malware monitor network networking nvidia outlook outlook 2003 outlook express password printer problem router slow software sound startup trojan usb video virus vista windows windows xp wireless
Business Applications
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Business Applications >
External Data Range Imported into Excel-Data Format


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
WAJ0606's Avatar
Senior Member with 137 posts.
 
Join Date: Oct 2007
Experience: Intermediate
25-Jun-2008, 01:46 PM #1
External Data Range Imported into Excel-Data Format
I have an external data range importing data (Access DB via file DSN) into an Excel spreadsheet.
My problem is date/currency fields in Access do not format properly after refreshing. Most of the time the fields default to a general.

Any ideas?
Attached Thumbnails
external-data-range-imported-into-settings.jpg  
WAJ0606's Avatar
Senior Member with 137 posts.
 
Join Date: Oct 2007
Experience: Intermediate
26-Jun-2008, 02:07 PM #2
bump
WAJ0606's Avatar
Senior Member with 137 posts.
 
Join Date: Oct 2007
Experience: Intermediate
03-Jul-2008, 07:57 AM #3
bump
Aj_old's Avatar
Computer Specs
Senior Member with 624 posts.
 
Join Date: Sep 2007
Location: Moldova
Experience: Intermediate
03-Jul-2008, 08:00 AM #4
Try to check the Preserve cell fomatting option, or you tried this and it doesn't work!
WAJ0606's Avatar
Senior Member with 137 posts.
 
Join Date: Oct 2007
Experience: Intermediate
03-Jul-2008, 08:04 AM #5
Preserve would keep them as the "General" type as the data expands. Also, when fields are added/deleted or rearranged in the Access query columns that were manually set to for example a date field, but now contain a number keep the date format.

In essence what I need is to preserve the formatting from Access.
WAJ0606's Avatar
Senior Member with 137 posts.
 
Join Date: Oct 2007
Experience: Intermediate
04-Jul-2008, 08:56 AM #6
i ended up adding some vb code to format columns based on the heading. certainly not a solution, but its a temp fix at least
slurpee55's Avatar
Computer Specs
Distinguished Member with 4,288 posts.
 
Join Date: Oct 2004
Location: Southwest Iowa....
Experience: Currently stupid...
04-Jul-2008, 10:36 AM #7
Could you post your code and explain in more detail what is wrong with it?
WAJ0606's Avatar
Senior Member with 137 posts.
 
Join Date: Oct 2007
Experience: Intermediate
05-Jul-2008, 10:23 AM #8
The VB code works. It formats the entire column based on the field headings. But, its not ideal because the format should stay the same from Access to Excel and the code should never be needed.

I use a file dsn as to import the data to excel and is refreshed daily across ~30 files, all based on individual queries. End users are constantly changing their requirements which changes the order of the fields/columns. In excel if after a change to a query a date field is now where a number field was previously the format stays as a number and has to be manually changed.
WAJ0606's Avatar
Senior Member with 137 posts.
 
Join Date: Oct 2007
Experience: Intermediate
11-Jul-2008, 04:26 PM #9
bump
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 05:24 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.