Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Programatically Extend The Formila In A Cell

Cell L4 has the formula:
=4 + 2 + 5
What is the code to extend the formula to:
=4 + 2 + 5 + 3

This may occur many times over time amd the number of additions could
approach 50.

Thanks!

Steve



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Programatically Extend The Formila In A Cell

Sub steve()
With Range("L4")
.Formula = .Formula & "+3"
End With
End Sub

--
Gary''s Student - gsnu200743


"Steve" wrote:

Cell L4 has the formula:
=4 + 2 + 5
What is the code to extend the formula to:
=4 + 2 + 5 + 3

This may occur many times over time amd the number of additions could
approach 50.

Thanks!

Steve




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Programatically Extend The Formila In A Cell

Thanks for the quick response!

Steve


"Gary''s Student" wrote in message
...
Sub steve()
With Range("L4")
.Formula = .Formula & "+3"
End With
End Sub

--
Gary''s Student - gsnu200743


"Steve" wrote:

Cell L4 has the formula:
=4 + 2 + 5
What is the code to extend the formula to:
=4 + 2 + 5 + 3

This may occur many times over time amd the number of additions could
approach 50.

Thanks!

Steve






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Programatically Extend The Formila In A Cell

Why are you asking such a basic question? For more than five years, you have
been claiming to be an Excel expert. Have you been lying about your skill
level?

Modifying a formula is simply a matter of modifying a string. Something that
is very basic and is common in all flavours of VBA, including Access VBA.

For the Regular Excel users: Sorry you have to put up with Steve, hopefully
he will behave himself in the Excel newsgroups, but from past experiences,
that is highly unlikely. Steve (aka PCdatasheet) has been abusing the Access
newsgroups for years with direct solicitations, telling users that the
regular experts are idiots and that the users can only get their problems
solved if they contact him and he will only charge a reasonable fee. When he
does post "helpful" answers, there is a good chance that it is misleading or
wrong.

If you are curious and would like to see more informtion about steve, one of
the regular Access posts has compiled a website
http://home.tiscali.nl/arracom/whoissteve.html

John... Visio MVP

" Steve" wrote in message
...
Cell L4 has the formula:
=4 + 2 + 5
What is the code to extend the formula to:
=4 + 2 + 5 + 3

This may occur many times over time amd the number of additions could
approach 50.

Thanks!

Steve



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
text won't extend to adjacent cell ladymjl Excel Discussion (Misc queries) 2 August 3rd 07 10:00 PM
Extend text to next cell Stanley Excel Discussion (Misc queries) 3 December 14th 05 08:47 PM
How NOT to extend formula/refrence to a cell [email protected] Excel Worksheet Functions 2 October 9th 05 10:02 AM
How do I extend a underline across an entire cell? Lindsay Excel Discussion (Misc queries) 8 June 23rd 05 10:42 PM
How do I extend underline across a whole cell w/o using the border R Morgan Excel Discussion (Misc queries) 6 June 22nd 05 03:22 PM


All times are GMT +1. The time now is 08:43 AM.

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"