#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default about & operator

i have a question about & operator.i was using that operator in a
vicious circle ( for x ...next x ).
but that operator not runing with my vicious..

example :
sub report()

cash1= 25/05/2008
for i = 1 to 10
'PROBLEM THIS BELOW!!!
"cash"& i = cash1 + i
next i

end sub

i want to that result
cash2 = 26/05/2008
cash3 = 27/05/2008

how can i do it?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 896
Default about & operator

will this help?

Sub report()


cash1 = #5/25/2008#
For i = 1 To 10
ActiveCell.Offset(i, 0).Value = "cash" & i & " = " & DateSerial
(Year(cash1), Month(cash1), Day(cash1) + i)
Next i


End Sub




On 12 Gru, 17:27, " wrote:
i have a question about & operator.i was using that operator in a
vicious circle ( for x ...next x ).
but that operator *not runing with my vicious..

example :
sub report()

cash1= 25/05/2008
for i = 1 to 10
* * 'PROBLEM THIS BELOW!!!
* * "cash"& i = cash1 + i
next i

end sub

i want to that result
cash2 = 26/05/2008
cash3 = 27/05/2008

how can i do it?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default about & operator

Dim cash As Variant

Redim cash ( 1 To 10)
For i = 1 To 10

cash(i) = DateSerial(2008,5,25) + i
Next i

--
__________________________________
HTH

Bob

wrote in message
...
i have a question about & operator.i was using that operator in a
vicious circle ( for x ...next x ).
but that operator not runing with my vicious..

example :
sub report()

cash1= 25/05/2008
for i = 1 to 10
'PROBLEM THIS BELOW!!!
"cash"& i = cash1 + i
next i

end sub

i want to that result
cash2 = 26/05/2008
cash3 = 27/05/2008

how can i do it?



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
Operator for Contains Leanne M (Aussie) Excel Worksheet Functions 2 October 21st 08 11:01 AM
Operator kittycris Excel Worksheet Functions 3 January 11th 07 01:36 AM
XOR Operator - How? Randy Brown Excel Discussion (Misc queries) 3 April 8th 06 09:47 PM
what does ~ operator mean? Todd Excel Discussion (Misc queries) 3 November 22nd 05 05:30 PM
OR Operator Freddy Excel Worksheet Functions 2 April 17th 05 06:11 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"