Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default freeze cells


Hi,

I've got a little problem with Excel. I have to protect some cells from
changing its value. One little example: A1=2; A2=3; C1=A1*A2;

Now we have C1=6. But if you change the value of A1 or A2, the value of
C1 also changes. How can I freeze the Value? I have to do it by a macro,
because there are lots of different cells to freeze.


--
LL0rd
------------------------------------------------------------------------
LL0rd's Profile: http://www.excelforum.com/member.php...o&userid=23712
View this thread: http://www.excelforum.com/showthread...hreadid=373879

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default freeze cells

If the value of A1, and A2 are never to change, just protect them all.
The only other way I can see is to somehow work in a paste special
command, and just paste the value. I don't know if that would work for
you.



*** Sent via Developersdex http://www.developersdex.com ***
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default freeze cells

This procedure does what you want for the activecell:

Sub Freeze()
ActiveCell.Formula = ActiveCell.Value
End Sub

HTH
--
Helen


"LL0rd" wrote:


Hi,

I've got a little problem with Excel. I have to protect some cells from
changing its value. One little example: A1=2; A2=3; C1=A1*A2;

Now we have C1=6. But if you change the value of A1 or A2, the value of
C1 also changes. How can I freeze the Value? I have to do it by a macro,
because there are lots of different cells to freeze.


--
LL0rd
------------------------------------------------------------------------
LL0rd's Profile: http://www.excelforum.com/member.php...o&userid=23712
View this thread: http://www.excelforum.com/showthread...hreadid=373879


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default freeze cells


Helen Trim Wrote:
This procedure does what you want for the activecell:

Sub Freeze()
ActiveCell.Formula = ActiveCell.Value
End Sub

HTH
--
Helen



Jeah! Great THX!


--
LL0rd
------------------------------------------------------------------------
LL0rd's Profile: http://www.excelforum.com/member.php...o&userid=23712
View this thread: http://www.excelforum.com/showthread...hreadid=373879

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
how do I lock or freeze cells grunt_02_gunny Excel Discussion (Misc queries) 1 April 16th 09 11:55 PM
How to freeze 1 or more CELLS in spreadsheet? Bigdog Excel Worksheet Functions 5 January 8th 09 07:18 PM
How to freeze cells to always remain the same value Alex Excel Worksheet Functions 2 March 1st 07 06:06 PM
cells visable and following. Not freeze Bobby Excel Worksheet Functions 2 July 13th 06 05:40 PM
Freeze cells from further calculation? jonco Excel Programming 1 March 29th 05 07:01 PM


All times are GMT +1. The time now is 08:46 PM.

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"