LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Treetop
 
Posts: n/a
Default Excel not calculating formulas


Hi

Found the same behaviour when using user functions defined in VBA.
I use simple workaround: removing a row from a sheet forces Excel to
calculate all formulas. I simply wrote a macro that goes to the last
cell in the sheet, then moves activecell one row down and remove active
row. I assign it to the button called 'DO Calculate'. It is quite messy,
I was in the hurry writing it ;). It also returns to active cell
afterward.


Do anyone have an idea how to fix it permanently, some option in
Excel?



Sub RemoveLastRow()

startx = ActiveCell.Column
starty = ActiveCell.row
backtostart = Cells(starty,
startx).AddressLocal(RowAbsolute:=False, ColumnAbsolute:=False)

ActiveCell.SpecialCells(xlLastCell).Select
x = ActiveCell.Column
y = ActiveCell.row
newaddr = Cells(y + step, x).AddressLocal(RowAbsolute:=False,
ColumnAbsolute:=False)
Range(newaddr).Activate

row = ActiveCell.row
rowStr = StrConv(row, 1)

removeme = rowStr + ":" + rowStr

Rows(removeme).Select
Selection.Delete Shift:=xlUp
Range(backtostart).Activate

End Sub


--
Treetop
------------------------------------------------------------------------
Treetop's Profile: http://www.excelforum.com/member.php...o&userid=33070
View this thread: http://www.excelforum.com/showthread...hreadid=528411

 
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
TRYING TO SET UP EXCEL SPREADSHEET ON MY COMPUTER MEGTOM New Users to Excel 5 October 27th 05 03:06 AM
Delete the formulas of webpage, copied & pasted on excel sheet Mustafa Abedin Excel Discussion (Misc queries) 1 June 19th 05 02:39 PM
Excel Range Value issue (Excel 97 Vs Excel 2003) Keeno Excel Discussion (Misc queries) 2 June 13th 05 02:01 PM
Calculating Cells causes Excel to stop responding Marina Excel Discussion (Misc queries) 1 April 26th 05 06:19 PM
How Excel & ACCPAC 6.1 calculate formulas???? Bass Mama1 Excel Worksheet Functions 1 February 9th 05 03:25 PM


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