Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
acw acw is offline
external usenet poster
 
Posts: 19
Default Format to text was not sufficient

Bruce

Try this.

Sub aaa()
Range("h65536").End(xlUp).Select
While ActiveCell.Row 11
If WorksheetFunction.IsNumber(ActiveCell.Value) Then
ActiveCell.Value = "'" & ActiveCell.Value
End If
ActiveCell.Offset(-1, 0).Select
Wend

End Sub

Tony
-----Original Message-----
I have a column of 400 rows or so of data where the
characters are all numbers but the field I'm uploading to
is alpha. Formatting these entries as text does now work
in this situation. Example below:

52006000 would be entered as '52006000

So, what I need is to convert an undetermined number of
cells in a column. I need the macro beginning in cell h12
in this case and it needs to figure out how many rows
there are from there on down so that it will have a stop
value.

Then I would need a for loop that would go into each

cell.
It would need to add the apostrophe at the beginning of
the cell entry in the fashion shown above if it is not
already there.

Thanks for your help...


Bruce
.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with converting CUSTOM format/TEXT format to DATE format Deo Cleto Excel Worksheet Functions 6 June 2nd 09 08:14 PM
Vlookup not sufficient - suggestions for combining multiple matche m Excel Worksheet Functions 7 November 13th 08 01:00 PM
Merge files blocked by change history and "sufficient amount of ti GeoObject Excel Discussion (Misc queries) 1 November 19th 05 09:11 PM
VLOOKUP/ SUMIF not sufficient Morgwen Excel Discussion (Misc queries) 0 June 15th 05 03:26 AM
VLOOKUP is not sufficient ASHISH SRIVASTAVA Excel Worksheet Functions 1 January 13th 05 02:45 PM


All times are GMT +1. The time now is 04:58 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"