Thread: Code Question
View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Michael168[_112_] Michael168[_112_] is offline
external usenet poster
 
Posts: 1
Default Code Question

Hi Tom Ogilvy,

Thanks for explaining. How do I change the starting columns to "Col K
instead of the next empty cell to the right? I means fix it to start a
column "K".

=======
Old code #

Range("IV" & myRow).End(xlToLeft)(1, 2).Value = _
myRange.Cells(i, j).Value
=======

Regards,
Michael

Tom Ogilvy wrote:
[b]if myrow were equal to 6, it would refer to cell IV6 which is th
rightmost
cell in the worksheet. (column IV)

It then comes left until it finds the first cell not empty and goe
to the
cell to the right of that (next empty cell in the row).

It then assigns a value to it.

--
Regards,
Tom Ogilv


--
Message posted from http://www.ExcelForum.com