Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: How do I change my code to offset to the....

  1. #1
    New Member
    Join Date
    Feb 2002
    Posts
    8
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    info into columns rather than rows??

    here's what I have.....

    Sheets("COLUMN").Range("A65536").End(xlUp).Offset(1, 0).Value = CN
    Sheets("COLUMN").Range("C65536").End(xlUp).Offset(1, 0).Value = FB
    Sheets("COLUMN").Range("E65536").End(xlUp).Offset(1, 0).Value = FA
    Sheets("COLUMN").Range("G65536").End(xlUp).Offset(1, 0).Value = CW


    As always, thanks for the info.

  2. #2
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Bogota, Colombia
    Posts
    11,959
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Not clear what you expect...

    Offset has two parameters, rows and columns, if you need to offset one column to the right you can use.

    MyRange.Offset(,1)
    Regards,

    Juan Pablo González
    http://www.juanpg.com

  3. #3
    New Member
    Join Date
    Feb 2002
    Posts
    8
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    How do I change the code so that the info goes into the next available column to the right? If I write it as.....

    Sheets("COLUMN").Range("A65536").End(xlUp).Offset(0,1).Value = CN

    ........wouldn't that put the info in column B?? I'm confused


Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •