+ Reply to Thread
Results 1 to 4 of 4

shifting columns

  1. #1
    Registered User
    Join Date
    12-12-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    11

    shifting columns

    This is an example of the code I am using to populate textboxes a user form.

    Please Login or Register  to view this content.
    now I need to shift over columns instead of down rows... I had hoped that it would be as simple as this:
    Please Login or Register  to view this content.
    but it is not. I know this has to be a simple fix but I just do not know it, any help would be greatly appreciated.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: shifting columns

    Instead of .range(("a" + i) &"2").value,
    try .Cells(rownum, calculated column number).Value (e.g. Cells(2,a+j).Value)
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    12-12-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: shifting columns

    Thanks! That will works, however I just tried using the offset function
    Please Login or Register  to view this content.
    which seems to be working pretty well.

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: shifting columns

    @ clc3

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1