ReImport text data and keep existing formatting

S

seannakasone

Hi, how do I import data from a text file into spreadsheet and preserve
the existing formatting of the spreadsheet? The reason is because I
periodically generate a text file from a database, I then open the text
file in Excel (specify the appropriate field delimiter) then it opens in a
new spreadsheet, but with default formatting. I then format the cells.
Instead, I would like to regenerate the text file, and import it into an
existing excel spreadsheet, keeping the existing formatting and have the
data be replaced.
 
D

Dennis Tucker

Use the two workbook approach.

Have one workbook formatted and ready to receive the new data.

The other workbook is the new(unformatted) version that you do normally.

Next, copy all the data for the new(unformatted) version and use
pastespecial(values) to put the unformatted info into the correct format.


Dennis
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top