LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 11,058
Default Automatic Calculations of Text Material

Select the cells (or an entire column and run the macro:

Sub becky()
Set r = Intersect(Selection, ActiveSheet.UsedRange)
For Each rr In r
rr.Value = "'" & rr.Value
Next
End Sub


Macros are very easy to install and use:

1. ALT-F11 brings up the VBE window
2. ALT-I
ALT-M opens a fresh module
3. paste the stuff in and close the VBE window

If you save the workbook, the macro will be saved with it.

To remove the macro:

1. bring up the VBE window as above
2. clear the code out
3. close the VBE window

To use the macro from Excel:

1. ALT-F8
2. Select the macro
3. Touch RUN

To learn more about macros in general, see:

http://www.mvps.org/dmcritchie/excel/getstarted.htm

--
Gary''s Student - gsnu200770


"Rebecca" wrote:

OK, and thanks, Gary's Student. However, this will involve a lot of tedious
insertions (though possible with search and replace), because there are many
entries in certain columns that contain only text. Is there any way to
automatic this apostrophe insertion? And isn't there an option that I can
click or unclick rendering the entire column "calculation free," so to speak?

"Gary''s Student" wrote:

Precede each entry in the column with an apostrophe (single quote).
--
Gary''s Student - gsnu200770


"Rebecca" wrote:

I have a problem that I am unable to solve by reading the help file. I have
text material in a column that contain "-", "?", "{", "*", "/", and so on (I
formatted the column as text). Excel 2007 occasionally automatically tries to
calculate the contents of this column and / or cells (for example, when I
make some changes to the text in certain cells), which is unnecessary because
as I wrote above the contents of the cells are pure text. How can I turn off
these calculations for the entire sheet (or at least certain columns)? Yes, I
know this is Excel and that is what a spreadsheet is primarily used for, but
is it possible to turn this feature off?

 
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
How to stop Automatic calculations? 1ThngOrAnthr Excel Discussion (Misc queries) 2 August 8th 07 08:56 PM
Automatic Calculations Jimbo Excel Worksheet Functions 1 May 8th 06 07:16 PM
automatic calculations Kelseyk Excel Worksheet Functions 3 April 20th 06 07:54 PM
automatic calculations within workbook Vic Setting up and Configuration of Excel 0 February 25th 05 07:53 PM
making one material list from mulitple vendor material lists In the beginning Excel Worksheet Functions 1 January 8th 05 02:49 AM


All times are GMT +1. The time now is 02:54 PM.

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

About Us

"It's about Microsoft Excel"