Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default VBA automatically change text format into general format?

Hi,

I've a macro which can copy cell(s) containing formula in text format
into other cell(s).
I want to activate these formulas automatically when they are in the
destination cell. For the time being I have to go in each cell and
activate the formula by hitting enter. Is it possible to do it
automatically, something that I can add at the end of my macro ?

Thank you

Nic.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 644
Default VBA automatically change text format into general format?

Try setting the formula of the destination cells to the text of the
host cells like this:

Range("A1").Formula = Range("A2").Text

HTH

Die_Another_Day

Nicawette wrote:
Hi,

I've a macro which can copy cell(s) containing formula in text format
into other cell(s).
I want to activate these formulas automatically when they are in the
destination cell. For the time being I have to go in each cell and
activate the formula by hitting enter. Is it possible to do it
automatically, something that I can add at the end of my macro ?

Thank you

Nic.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default VBA automatically change text format into general format?

Hi thank you
so simple and it works, cool

Die_Another_Day wrote:
Try setting the formula of the destination cells to the text of the
host cells like this:

Range("A1").Formula = Range("A2").Text

HTH

Die_Another_Day

Nicawette wrote:
Hi,

I've a macro which can copy cell(s) containing formula in text format
into other cell(s).
I want to activate these formulas automatically when they are in the
destination cell. For the time being I have to go in each cell and
activate the formula by hitting enter. Is it possible to do it
automatically, something that I can add at the end of my macro ?

Thank you

Nic.


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
General Text format automatically get changed to DATE Shweta Srivastava[_2_] Excel Discussion (Misc queries) 0 September 21st 09 10:57 AM
Change cell format from text to general on the fly JSnow Excel Discussion (Misc queries) 9 August 13th 08 04:25 PM
excel numbers in general format i cant add cant change format claude Excel Worksheet Functions 2 July 7th 06 08:18 PM
Change CSV-load cell format from GENERAL to TEXT for numbers? Morena Chris Matthews Excel Discussion (Misc queries) 1 October 14th 05 05:23 PM
Change General Format to Currency Format Freshman Excel Worksheet Functions 3 July 8th 05 03:42 AM


All times are GMT +1. The time now is 02:49 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"