So the saga continues,
I have finally have my last excel worksheet displaying the values as I wish before publishing to the web. My sheet needs to be saved out as a Text File, upon doing this, Excel once again converts my display values back to text.
Here is the sub that converts the display values: the only way I can get this to work was to place a single quote in front of my replacement values. I am assuming that when the file is save to a text file excel drops the single quote-
[VBA]
Sub DougsFindAndReplacev2()
Dim Wsc As Worksheet
Dim c As Range, rng As Range
Dim LRowc As Long
Dim shCalcSetting As Long
Set Wsc = Workbooks("Complete_Upload_File.xls").Worksheets("EC Products")
LRowc = lr(Wsc, 1)
Range("J4:J" & LRowc).Replace "39208", "'5-6", xlWhole, , False
Range("J4:J" & LRowc).Replace "39271", "'7-8", xlWhole, , False
Range("J4:J" & LRowc).Replace "39272", "'7-9", xlWhole, , False
Range("J4:J" & LRowc).Replace "39335", "'9-10", xlWhole, , False
Range("J4:J" & LRowc).Replace "39336", "'9-11", xlWhole, , False
Range("J4:J" & LRowc).Replace "39398", "'11-12", xlWhole, , False
Range("J4:J" & LRowc).Replace "39399", "'11-13", xlWhole, , False
Range("J4:J" & LRowc).Replace "39366", "'10-11", xlWhole, , False
Range("J4:J" & LRowc).Replace "39211", "'5-9", xlWhole, , False
Range("J4:J" & LRowc).Replace "39096", "'1-14", xlWhole, , False
Application.ScreenUpdating = True
End Sub
[/VBA]
Any ideas here?