LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Help on editing a function using a macro

A1 45.00
A2 49.00
A3 31.00
A4 34.00
A5 59.00
A6 21.00
A7 =SUM(A1:A7)

What i need to do is change the equasion in A7 from "=SUM(A1:A7)" to
"=RoundUp(SUM(A1:A7),0)". When i try to do this with this code

Sub RoundUP()
Dim x As String
x = ActiveCell.Formula
x = "=roundup(" & x & ",0)"
ActiveCell.Formula = x
End Sub

I get x= "=RoundUp(=SUM(A1:A7),0)"
I need to remove the extra internal = sign or do this a different way. How
can i do this?

Thanks!

 
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
Editing a macro pm Excel Discussion (Misc queries) 5 June 6th 07 11:33 PM
Need help editing the Function... Dan B Excel Programming 0 September 28th 06 10:39 PM
Need Help Editing this Function... Dan B Excel Worksheet Functions 0 September 28th 06 12:44 AM
text editing function help JenBasch Excel Worksheet Functions 3 September 19th 05 07:41 PM
Manually editing Sort function in VBA havocdragon Excel Programming 1 August 25th 04 01:03 PM


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