+ Reply to Thread
Results 1 to 5 of 5

VBA to Filldown Every Other Column with Formula

  1. #1
    Registered User
    Join Date
    11-09-2012
    Location
    Oregon, USA
    MS-Off Ver
    Excel 2007
    Posts
    53

    VBA to Filldown Every Other Column with Formula

    The code below should enter a formula beginning in column O (15th column) followed by every other column until the 93rd column on the "Winshuttle" worksheet. Instead, the code is starting on column S or V. How do I get this to start in the 15th column?


    Please Login or Register  to view this content.
    Please see attached for example.
    Attached Files Attached Files
    Last edited by msawyer; 03-29-2013 at 02:09 PM. Reason: adjusted code

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: VBA to Filldown Every Other Column with Formula

    The code isn't starting on column S or V, it starts on column O then moves to Q, then R and so on until it finishes in column CO, the 93rd column.

    Mind you I don't think the formula is quite right.

    In column O you have this,
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    where the column index is 9.5.
    Last edited by Norie; 03-29-2013 at 02:17 PM.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    11-09-2012
    Location
    Oregon, USA
    MS-Off Ver
    Excel 2007
    Posts
    53

    Re: VBA to Filldown Every Other Column with Formula

    When I run the code, it starts in column S. It is supposed to start in column O but isn't.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: VBA to Filldown Every Other Column with Formula

    When I run the code it starts in column O.

    You can see that in the Immediate Window (CTRL+G) if you add this just after the For.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    11-09-2012
    Location
    Oregon, USA
    MS-Off Ver
    Excel 2007
    Posts
    53

    Re: VBA to Filldown Every Other Column with Formula

    I figured it out. I forgot about a hidden column I had on the Template page. Thanks for the help.

+ 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