#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default copy column


Hi, I have the following code which would create two columns, column A
could contain some names and column B would download something from the
database based on column A. I want to download something into column C
based on column B (the italic line). However this code doesn't seem to
be working. it seems like "under" is return blank when I tried printing
it out. Please help! this is urgent! thanks very much.


Do While Not Left(rgSource.Offset(nRow, 0).Value, 4) = "#N/A"
For nCol = 1 To 14
If Trim(rgSource.Offset(nRow, nCol - 1).Value) < "" Then
rgTarget.Offset(ntRow, 0).Value = rgSource.Offset(nRow,
nCol -1).Value
ntRow = ntRow + 1
End If
Next nCol
nRow = nRow + 1
Loop
ReDim szWarData(ntRow + 1, 10)
nRow = 0

Do While rgTarget.Offset(nRow, 0).Value < ""

szRic = rgTarget.Offset(nRow, 0).Value

- Under = rgUnder.Offset(nRow,1).Value-

szWarData(nRow, 0) = "=RtGet(""RSF"", """ & szRic & """,
""LONGLINK1"")"
- szWarData(nRow, 1)="=RtGet(""RSF"", """ & Under& """,
""LONGLINK1"")" -
nRow = nRow + 1
Loop


--
owl527
------------------------------------------------------------------------
owl527's Profile: http://www.excelforum.com/member.php...o&userid=20916
View this thread: http://www.excelforum.com/showthread...hreadid=476177

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
Match Column and copy to cell Column D Jeffrey Yau Excel Worksheet Functions 1 October 26th 09 12:53 AM
Can I copy row height like i copy column width? Markman Excel Discussion (Misc queries) 1 April 3rd 09 01:54 AM
How to search column, copy row, and copy to another sheet in same Rockhound Excel Discussion (Misc queries) 1 December 9th 06 04:16 PM
how to make one column copy from one sheet to anoth column w/o zer areezm Excel Discussion (Misc queries) 3 June 6th 06 10:45 PM
To copy values in a column relevant to text in an adjacent column? Guy Keon Excel Worksheet Functions 2 November 15th 05 08:10 PM


All times are GMT +1. The time now is 06:48 AM.

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"