PC Review


Reply
Thread Tools Rate Thread

add 1 to the value in a cell

 
 
pls123
Guest
Posts: n/a
 
      24th Sep 2008
hi all !! good afternoon !!!

i want to remerciate the microsoft forum for the precious help.

i need this:

If "my.condition.true" Then
add 1 to the value of cell "b5"
End If

Ty all for interesting !!

 
Reply With Quote
 
 
 
 
Ron de Bruin
Guest
Posts: n/a
 
      24th Sep 2008
Hi pls123

With Sheets("Sheet1")
.Range("B5").Value = .Range("B5").Value + 1
End With


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"pls123" <(E-Mail Removed)> wrote in message news:4DA0A14A-26E4-47F4-9434-(E-Mail Removed)...
> hi all !! good afternoon !!!
>
> i want to remerciate the microsoft forum for the precious help.
>
> i need this:
>
> If "my.condition.true" Then
> add 1 to the value of cell "b5"
> End If
>
> Ty all for interesting !!
>

 
Reply With Quote
 
pls123
Guest
Posts: n/a
 
      24th Sep 2008
hi ron tyvm
i don't understand the needing of " with " !!

"Ron de Bruin" wrote:

> Hi pls123
>
> With Sheets("Sheet1")
> .Range("B5").Value = .Range("B5").Value + 1
> End With
>
>
> --
>
> Regards Ron de Bruin
> http://www.rondebruin.nl/tips.htm
>
>
> "pls123" <(E-Mail Removed)> wrote in message news:4DA0A14A-26E4-47F4-9434-(E-Mail Removed)...
> > hi all !! good afternoon !!!
> >
> > i want to remerciate the microsoft forum for the precious help.
> >
> > i need this:
> >
> > If "my.condition.true" Then
> > add 1 to the value of cell "b5"
> > End If
> >
> > Ty all for interesting !!
> >

>

 
Reply With Quote
 
Ron de Bruin
Guest
Posts: n/a
 
      24th Sep 2008
Hi

> i don't understand the needing of " with " !!


Now I only have to use Sheets("Sheet1") one time and if I want to edit the sheet name
I only have to do it one time

This is the same

Sheets("Sheet1") .Range("B5").Value = Sheets("Sheet1") .Range("B5").Value +1

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"pls123" <(E-Mail Removed)> wrote in message news:C62C5034-201E-4D8E-8A36-(E-Mail Removed)...
> hi ron tyvm
> i don't understand the needing of " with " !!
>
> "Ron de Bruin" wrote:
>
>> Hi pls123
>>
>> With Sheets("Sheet1")
>> .Range("B5").Value = .Range("B5").Value + 1
>> End With
>>
>>
>> --
>>
>> Regards Ron de Bruin
>> http://www.rondebruin.nl/tips.htm
>>
>>
>> "pls123" <(E-Mail Removed)> wrote in message news:4DA0A14A-26E4-47F4-9434-(E-Mail Removed)...
>> > hi all !! good afternoon !!!
>> >
>> > i want to remerciate the microsoft forum for the precious help.
>> >
>> > i need this:
>> >
>> > If "my.condition.true" Then
>> > add 1 to the value of cell "b5"
>> > End If
>> >
>> > Ty all for interesting !!
>> >

>>

 
Reply With Quote
 
pls123
Guest
Posts: n/a
 
      24th Sep 2008
ah yes !! now i remember, sorry !!!
ty ron , see you next !!




"Ron de Bruin" wrote:

> Hi
>
> > i don't understand the needing of " with " !!

>
> Now I only have to use Sheets("Sheet1") one time and if I want to edit the sheet name
> I only have to do it one time
>
> This is the same
>
> Sheets("Sheet1") .Range("B5").Value = Sheets("Sheet1") .Range("B5").Value +1
>
> --
>
> Regards Ron de Bruin
> http://www.rondebruin.nl/tips.htm
>
>
> "pls123" <(E-Mail Removed)> wrote in message news:C62C5034-201E-4D8E-8A36-(E-Mail Removed)...
> > hi ron tyvm
> > i don't understand the needing of " with " !!
> >
> > "Ron de Bruin" wrote:
> >
> >> Hi pls123
> >>
> >> With Sheets("Sheet1")
> >> .Range("B5").Value = .Range("B5").Value + 1
> >> End With
> >>
> >>
> >> --
> >>
> >> Regards Ron de Bruin
> >> http://www.rondebruin.nl/tips.htm
> >>
> >>
> >> "pls123" <(E-Mail Removed)> wrote in message news:4DA0A14A-26E4-47F4-9434-(E-Mail Removed)...
> >> > hi all !! good afternoon !!!
> >> >
> >> > i want to remerciate the microsoft forum for the precious help.
> >> >
> >> > i need this:
> >> >
> >> > If "my.condition.true" Then
> >> > add 1 to the value of cell "b5"
> >> > End If
> >> >
> >> > Ty all for interesting !!
> >> >
> >>

>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Code to copy the formulae of one cell to all the cell in the rangewith the specific cell and columnnumber changing Options Yuvraj Microsoft Excel Misc 0 29th Jun 2009 11:20 AM
Populate a cell if values in cell 1 and cell 2 match cell 3 and 4 tviola@wi.rr.com Microsoft Excel Programming 1 21st Aug 2008 10:13 PM
Populate a cell if values in cell 1 and cell 2 match cell 3 and 4 tviola@wi.rr.com Microsoft Excel Worksheet Functions 0 21st Aug 2008 08:44 PM
NEED VBA TO SELECT A CELL; NOTE THE CELL VALUE;COPYADJ CELL;FIND CELL VALUE IN A RANGE AND SO ON CAPTGNVR Microsoft Excel Programming 2 8th Jul 2007 04:18 PM
How to create/run "cell A equals Cell B put Cell C info in Cell D =?Utf-8?B?YWJtYjE2MQ==?= Microsoft Excel Misc 5 26th Jan 2006 06:36 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:21 PM.