Solved

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

Posted on 2008-10-27
1
218 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The password reset disk is often mentioned as the best solution to deal with the lost Windows password problem. In Windows 2008, 7, Vista and XP, a password reset disk can be easily created. But besides Windows 7/Vista/XP, Windows Server 2008 and ot…
Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

911 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

23 Experts available now in Live!

Get 1:1 Help Now