+ Reply to Thread
Results 1 to 4 of 4

Column Offset Formula - Sequential Columns Target

  1. #1
    Registered User
    Join Date
    01-24-2016
    Location
    UK
    MS-Off Ver
    2016
    Posts
    60

    Column Offset Formula - Sequential Columns Target

    Hi folks,

    needing some help on offset formula.

    I am targeting 3 Columns

    Column D,E and F

    D and E works, but Column F always appears in Column G

    Please Login or Register  to view this content.
    I thought this would be easy - but im not sure what I am doing any more

    thanks

    sl

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Column Offset Formula - Sequential Columns Target

    Rather than tell us what's not working, maybe explain what you are trying to do?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

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

    Re: Column Offset Formula - Sequential Columns Target

    Set TargetCell = TargetCell.Offset(, 1)
    Because you have used SET, the new TargetCell is in column E, not Column D, so

    Set TargetCell = TargetCell.Offset(, 2), jumps 2 columns from E (not D), i.e. column G. You don't have to use the SET:
    Please Login or Register  to view this content.
    Ben Van Johnson

  4. #4
    Registered User
    Join Date
    01-24-2016
    Location
    UK
    MS-Off Ver
    2016
    Posts
    60

    Smile Re: Column Offset Formula - Sequential Columns Target

    Hello Folks,

    I was trying to populate cells.

    I will preface by saying - I still don't understand the offset formula thing
    But I managed to get below working

    I was trying to put file name in column D, Title in column E, and the content of the file in Column F


    Please Login or Register  to view this content.
    thanks for help and speedy response

    sl

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] copy sequential columns / paste to non-sequential columns
    By macrorookie in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-09-2014, 04:59 PM
  2. Help with If Target.Column - Multiple Columns
    By englishdanish in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-19-2014, 09:44 PM
  3. [SOLVED] Store Multiple Non Sequential Column References in Array and then Select these columns
    By Jimbo77 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-25-2014, 02:12 PM
  4. Replies: 3
    Last Post: 01-30-2014, 05:31 AM
  5. [SOLVED] Need alternate syntax 'Select Case' on Target.Column and Target.Row at the same time.
    By 111StepsAhead in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-18-2012, 11:19 AM
  6. [SOLVED] formula for non-sequential columns
    By [email protected] in forum Excel General
    Replies: 4
    Last Post: 05-17-2006, 07:45 PM
  7. [SOLVED] Target.offset
    By trussman in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-03-2005, 01:06 PM

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