#1   Report Post  
Posted to microsoft.public.excel.programming
Sam Sam is offline
external usenet poster
 
Posts: 21
Default loop error

i have the foll code :
-------------------------------------------------------------------
For i = 1 To Cols
'...select Col i from increment, paste to inputs starting ColB
Sheets("increment").Columns(i).Copy
Sheets("inputs").Columns(2).PasteSpecial Paste:=xlValues
'...Copy Sheet3 Row 1 to Row i in Sheet 4

Sheets("value").Rows(i).Value = Sheets("main").Rows(3).Value
'ActiveWorkbook.Save
Next i

---------------------------------------------------------------------------
in the line below......
Sheets("inputs").Columns(2).PasteSpecial Paste:=xlValues


instead of columns(2) , want it to take row 2 column 2 ......how do i do that ?

i cant use rows(2).columns(2).....

can someone help ?

sam
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
stuck in an error loop Darla Excel Discussion (Misc queries) 1 January 8th 10 06:06 PM
loop code error help!!!! cesaoes Excel Discussion (Misc queries) 2 January 29th 08 04:52 PM
error on second pass of loop. Rob Excel Discussion (Misc queries) 3 September 9th 05 07:01 PM
loop error Sam Excel Programming 1 September 18th 03 03:09 PM
loop error Sam Excel Programming 0 September 18th 03 02:19 PM


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