Solved

Is there a script to automate changing headers in an excel file?  say..excel 2003?

Posted on 2008-10-27
1
217 Views
Last Modified: 2010-04-16
I want to change the headers to be Active Directory Import friendly.  So for example I have email address I want to change to a heading called "mail" and lastnames to the ad friendly surname.  How can I do this?  Thanks.
0
Comment
Question by:Sp0cky
1 Comment
 
LVL 14

Accepted Solution

by:
pteranodon72 earned 500 total points
ID: 22816593
It sounds like you are exporting a table to Excel and have undesirable field names.  Why don't you just create a query on the table, drag all the needed fields onto the grid, and rename the fields in question by typing a NewName: in front of the current field name.  Then, just export the query instead of the table.

The query SQL will look something like

SELECT  email as mail, lastname as surname, ..... FROM yourTable;

HTH,

pT
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
If like me you are one who spends a lot of time working and scripting with cmd.exe, sometimes it is handy to be able to quickly view a calendar for a given month and year. This script will quickly do just that!  Save the code posted below to a .bat …
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now