Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
parthaemail
 
Posts: n/a
Default dynamic selection of cells


hi
The below code shows an error in the second line . if give
sheet1.Range("C10").select its working fine but i want to populate the
i value from C1 to C100 cells.

For i = 1To 110 Step 1
Sheet1.Range(C(i)).Select
varnbrows = Selection.CurrentRegion.Rows.count
Selection.Value = i
Next i

thanks in advance


--
parthaemail
------------------------------------------------------------------------
parthaemail's Profile: http://www.excelforum.com/member.php...o&userid=31311
View this thread: http://www.excelforum.com/showthread...hreadid=535899

  #2   Report Post  
Posted to microsoft.public.excel.newusers
Bob Phillips
 
Posts: n/a
Default dynamic selection of cells

Sheet1.Range("C" & i).Select


--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"parthaemail"
wrote in message
...

hi
The below code shows an error in the second line . if give
sheet1.Range("C10").select its working fine but i want to populate the
i value from C1 to C100 cells.

For i = 1To 110 Step 1
Sheet1.Range(C(i)).Select
varnbrows = Selection.CurrentRegion.Rows.count
Selection.Value = i
Next i

thanks in advance


--
parthaemail
------------------------------------------------------------------------
parthaemail's Profile:

http://www.excelforum.com/member.php...o&userid=31311
View this thread: http://www.excelforum.com/showthread...hreadid=535899



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
Prefixing a selection of cells with zeros Louise Excel Worksheet Functions 2 April 4th 06 02:32 PM
Macro - Dynamic cell selection Chris Excel Discussion (Misc queries) 1 January 11th 06 01:48 PM
checking that cells have a value before the workbook will close kcdonaldson Excel Worksheet Functions 8 December 5th 05 04:57 PM
Help creating dynamic refrence cells Bill Excel Worksheet Functions 0 June 23rd 05 05:55 PM
Help adding text values Texas-DC_271 Excel Worksheet Functions 7 January 15th 05 11:14 PM


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