Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel formating text as Date ?

Status
Not open for further replies.

Guest
I am pasting textinfo from an xml-file into a cell but Excel interpetrates it as a date and that is not my intention ??
How to force cellformatinng in VBA ?
 
Replies continue below

Recommended for you

A simple thing would be to concatenate a single quote to the start of the text field.

TTFN
 
You can also pre-format the cell before inserting the value. Use the Format property of the cell or range object. Try recording a macro to get you started. Here, I simply formatted cell F5 as Text.
Code:
    Range("F5").Select
    Selection.NumberFormat = "@"
DimensionalSolutions@Core.com
While I welcome e-mail messages, please post all thread activity in these forums for the benefit of all members.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor