Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default How do i express this in number

What is an equilvalent expression in Range("A1") using only number inside
the prarentheses, how about Range("2:3")

I am trying to loop thru cells in a range, but working with qoutes make it
little bit harder.

thanks.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default How do i express this in number

Hi

Cells(rownumber, columnnumber)
like this:

Sub LoopEm()
Dim R As Long, C As Long
For R = 3 To 5
For C = 2 To 3
MsgBox Cells(R, C).Address
Next
Next
End Sub

--
HTH. Best wishes Harald
Followup to newsgroup only please.

"Phil Hunt" wrote in message
...
What is an equilvalent expression in Range("A1") using only number inside
the prarentheses, how about Range("2:3")

I am trying to loop thru cells in a range, but working with qoutes make it
little bit harder.

thanks.




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default How do i express this in number

Thanks for fast reply, but I am actually look for an equivalent expression
only. What would Range("A1") or Range("2:3") be using only numbers inside
the ().

"Harald Staff" wrote in message
...
Hi

Cells(rownumber, columnnumber)
like this:

Sub LoopEm()
Dim R As Long, C As Long
For R = 3 To 5
For C = 2 To 3
MsgBox Cells(R, C).Address
Next
Next
End Sub

--
HTH. Best wishes Harald
Followup to newsgroup only please.

"Phil Hunt" wrote in message
...
What is an equilvalent expression in Range("A1") using only number

inside
the prarentheses, how about Range("2:3")

I am trying to loop thru cells in a range, but working with qoutes make

it
little bit harder.

thanks.






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default How do i express this in number

I don't quite follow you. But you want to loop all cells in a known range. Select a few
cells and see if this is what you're after:

Sub Loop2()
Dim L As Long
Dim R As Range
Set R = Selection

For L = 1 To R.Count
MsgBox R(L).Address
Next
End Sub

--
HTH. Best wishes Harald
Followup to newsgroup only please.

"Phil Hunt" wrote in message
...
Thanks for fast reply, but I am actually look for an equivalent expression
only. What would Range("A1") or Range("2:3") be using only numbers inside
the ().

"Harald Staff" wrote in message
...
Hi

Cells(rownumber, columnnumber)
like this:

Sub LoopEm()
Dim R As Long, C As Long
For R = 3 To 5
For C = 2 To 3
MsgBox Cells(R, C).Address
Next
Next
End Sub

--
HTH. Best wishes Harald
Followup to newsgroup only please.

"Phil Hunt" wrote in message
...
What is an equilvalent expression in Range("A1") using only number

inside
the prarentheses, how about Range("2:3")

I am trying to loop thru cells in a range, but working with qoutes make

it
little bit harder.

thanks.








  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default How do i express this in number

ok, i'll be specific.
i need to do the following:

while ...
Range("E3").EntireColumn.Insert
.. fill up Range("F3") with some data
Range("G3").EntireColumn.Insert
... fill up Range("H3") with some data
wend


So working with qoute is little harder,(i mean how can u get from E to F),
can you help me with this. the RANGE, CELL, SELECTION object is a little
confusing to me.


"Harald Staff" wrote in message
...
I don't quite follow you. But you want to loop all cells in a known range.

Select a few
cells and see if this is what you're after:

Sub Loop2()
Dim L As Long
Dim R As Range
Set R = Selection

For L = 1 To R.Count
MsgBox R(L).Address
Next
End Sub

--
HTH. Best wishes Harald
Followup to newsgroup only please.

"Phil Hunt" wrote in message
...
Thanks for fast reply, but I am actually look for an equivalent

expression
only. What would Range("A1") or Range("2:3") be using only numbers

inside
the ().

"Harald Staff" wrote in message
...
Hi

Cells(rownumber, columnnumber)
like this:

Sub LoopEm()
Dim R As Long, C As Long
For R = 3 To 5
For C = 2 To 3
MsgBox Cells(R, C).Address
Next
Next
End Sub

--
HTH. Best wishes Harald
Followup to newsgroup only please.

"Phil Hunt" wrote in message
...
What is an equilvalent expression in Range("A1") using only number

inside
the prarentheses, how about Range("2:3")

I am trying to loop thru cells in a range, but working with qoutes

make
it
little bit harder.

thanks.












  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default How do i express this in number

I'd do that one like this:

Sub test()
Dim L As Long
For L = 5 To 17 Step 2
Columns(L).Insert
Cells(3, L + 1).Value = Time 'or whatever
Next
End Sub

--
HTH. Best wishes Harald
Followup to newsgroup only please.

"Phil Hunt" wrote in message
...
ok, i'll be specific.
i need to do the following:

while ...
Range("E3").EntireColumn.Insert
.. fill up Range("F3") with some data
Range("G3").EntireColumn.Insert
... fill up Range("H3") with some data
wend


So working with qoute is little harder,(i mean how can u get from E to F),
can you help me with this. the RANGE, CELL, SELECTION object is a little
confusing to me.




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
Express a large number in fewer digits $1,264,567.50 = $1.3 M Mumpa Excel Worksheet Functions 2 June 7th 08 03:49 PM
how do I express a number as a ratio (4:1) Neil[_2_] Excel Worksheet Functions 1 May 7th 07 09:07 PM
how to express a numerical in number words eg. 100 = one hundred Paul Lynch Excel Discussion (Misc queries) 1 April 23rd 07 02:44 PM
out express lm1986xs Setting up and Configuration of Excel 0 November 23rd 05 03:35 AM
to express degrees & power of a number in excel K.S.Warrier Excel Worksheet Functions 6 November 7th 04 01:58 PM


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