Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
toddsavage100
 
Posts: n/a
Default macro adding formula to new sheet


hi i have created a macro which moves one of my formulas to sheet 2 but
when i use the macro the formula is moved to sheet 2 but the value is 0
this is the formula i want moved to sheet 2 =SUM($H$33,$G$576,$D$582) i
would put "sheet1!" in front of each cell but then each time the value
in sheet 1 changes, the value in sheet 2 changes as well and i do not
want this to happen. here are some screen shots of my problem please
help me someone i need it done for tomorow pleaseeeeeee thanks.

screenshots
http://img379.imageshack.us/img379/5088/sheet13zc.jpg
http://img379.imageshack.us/img379/2613/sheet28vd.jpg


--
toddsavage100
------------------------------------------------------------------------
toddsavage100's Profile: http://www.excelforum.com/member.php...o&userid=32416
View this thread: http://www.excelforum.com/showthread...hreadid=521939

  #2   Report Post  
Posted to microsoft.public.excel.misc
Paul Lautman
 
Posts: n/a
Default macro adding formula to new sheet

toddsavage100 wrote:
hi i have created a macro which moves one of my formulas to sheet 2
but when i use the macro the formula is moved to sheet 2 but the
value is 0 this is the formula i want moved to sheet 2
=SUM($H$33,$G$576,$D$582) i would put "sheet1!" in front of each cell
but then each time the value in sheet 1 changes, the value in sheet 2
changes as well and i do not want this to happen. here are some
screen shots of my problem please help me someone i need it done for
tomorow pleaseeeeeee thanks.

screenshots
http://img379.imageshack.us/img379/5088/sheet13zc.jpg
http://img379.imageshack.us/img379/2613/sheet28vd.jpg


The screen shots are too small to be of any use.

Maybe the target cells for the formula cause it to be zero?

Maybe it would help if you posted the macro and what the formula looks like
after the move?


  #3   Report Post  
Posted to microsoft.public.excel.misc
David McRitchie
 
Posts: n/a
Default macro adding formula to new sheet

If you don't want the value to change then why are you copying a formula.
cell is a single cell range as you might use if your were looping through cells
or only working with a single cell.

cell.value is the value
cell.formula is the formula
cell.text is a formatted string of what appears in the cell.
cell.numberformat is the format itself
--
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Paul Lautman" wrote in message ...
toddsavage100 wrote:
hi i have created a macro which moves one of my formulas to sheet 2
but when i use the macro the formula is moved to sheet 2 but the
value is 0 this is the formula i want moved to sheet 2
=SUM($H$33,$G$576,$D$582) i would put "sheet1!" in front of each cell
but then each time the value in sheet 1 changes, the value in sheet 2
changes as well and i do not want this to happen. here are some
screen shots of my problem please help me someone i need it done for
tomorow pleaseeeeeee thanks.

screenshots
http://img379.imageshack.us/img379/5088/sheet13zc.jpg
http://img379.imageshack.us/img379/2613/sheet28vd.jpg


The screen shots are too small to be of any use.

Maybe the target cells for the formula cause it to be zero?

Maybe it would help if you posted the macro and what the formula looks like
after the move?




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
adding a formula to a macro Hemming Excel Discussion (Misc queries) 1 March 9th 06 03:15 PM
Sum total formula for adding 2 columnson time sheet John Sullivan Excel Worksheet Functions 1 October 21st 05 03:30 PM
Closing File Error jcliquidtension Excel Discussion (Misc queries) 4 October 20th 05 12:22 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM


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