And the formula I provided doesn't work either? Odd. What format is
the value in the cell? You could always strong arm Excel and cycle
through your column of data with a VBA routine hitting F2 and enter,
but that would be a last resort IMO because it forces a lot of
overhead through Excel. If you decide to go this route, make sure
that you execute the code by going to Tools--Macro-->Macros.
Otherwise, the code will fire in the VBE and simply show the Object
Browser.
This is assuming your bad data column is A, or 1. Simply change the
col variable to the column number containing your bad data.
Sub strongarm()
Dim col As Integer, r As Range
col = 1 'column number containing bad data
For Each r In Range(Cells(2, col), _
Cells(Cells(65536, col).End(xlUp).Row, col))
Application.SendKeys ("{F2}~")
Next r
End Sub
> Jim Sorry for not being clearer....by not happy I mean when I copy and
> paste the data across into a "list" and try and synchronise the list I
> get an error message. If I F2 the cell, change nothing I dont anymore...
> I ran the macro... does not seem to have solved the problem....
>
> *** Sent via Developersdex http://www.developersdex.com ***
Darin Kramer - 18 Sep 2007 18:20 GMT
Thanks for the effort.. I know get a "search string must be specified
error?
VB is getting stuck on the line Application.SendKeys ("{F2}~")
?
Thanks
D
JW - 18 Sep 2007 21:16 GMT
Darin, that code runs fine for me on my end. Not sure why it would be
giving you an error. Feel free to send me your spreadsheet and I'll
take a look at it.
> Thanks for the effort.. I know get a "search string must be specified
> error?
[quoted text clipped - 7 lines]
>
> *** Sent via Developersdex http://www.developersdex.com ***
Darin Kramer - 18 Sep 2007 21:22 GMT
Thanks - where should I send it too....? :)
JW - 19 Sep 2007 13:07 GMT
The e-mail on my profile will be fine.
> Thanks - where should I send it too....? :)
>
> *** Sent via Developersdex http://www.developersdex.com ***