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: 63
Default using user defined constants

Hello:

when I run the following code Range A1 contaims "Name?" .What am I doing
wrong ? Also in the for loop I would like to i to increment in steps of 0.1
how do i do that ? they way I tried does not work ?Thanks in advance

Ravi

Sub EnterInfo()
Dim i As Double
Dim x As Integer
Dim y As Integer
Dim del As Range
Dim cel As Range
Set cel = Range("a1")
Set del = Range("b1")
x = 2
y = 7
For i = 1 To 10
cel(i).Formula = "=SIN(x+y)"

del(i).Value = i
i = i + 0.1
Next i

End Sub

 
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
Wierd names defined as arrays of constants?!? Andy Smith[_2_] Excel Discussion (Misc queries) 1 September 18th 09 10:02 PM
Wierd names defined as arrays of constants?!? Andy Smith[_2_] Excel Discussion (Misc queries) 0 September 18th 09 08:01 PM
"User-defined type not defined" message in Excel RW1946 Excel Discussion (Misc queries) 0 August 31st 05 12:14 PM
Enumerated constants defined where? JW[_5_] Excel Programming 6 July 23rd 04 10:47 AM
User-defined data type; Error: Only User-defined types... tiger_PRM Excel Programming 1 July 18th 04 03:32 PM


All times are GMT +1. The time now is 09:40 AM.

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"