ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   how do I insert an ' in front of many rows of numbers? (https://www.excelbanter.com/excel-programming/328122-how-do-i-insert-front-many-rows-numbers.html)

jszuch

how do I insert an ' in front of many rows of numbers?
 
I have a column of numbers 1,800 rows long that needs an ' in front of every
row. How do I do this?

Tom Ogilvy

how do I insert an ' in front of many rows of numbers?
 
Sub MakeText()
Dim cell as Range
for each cell in Range("F1:F1800")
cell.Formula = "'" & cell.Text
Next
End Sub

--
Regards,
Tom Ogilvy

"jszuch" wrote in message
...
I have a column of numbers 1,800 rows long that needs an ' in front of

every
row. How do I do this?




Bob Phillips[_6_]

how do I insert an ' in front of many rows of numbers?
 
See response in .misc

--

HTH

RP
(remove nothere from the email address if mailing direct)


"jszuch" wrote in message
...
I have a column of numbers 1,800 rows long that needs an ' in front of

every
row. How do I do this?





All times are GMT +1. The time now is 09:22 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com