+ Reply to Thread
Results 1 to 2 of 2

VBA code won't fill down

  1. #1
    Registered User
    Join Date
    07-20-2015
    Location
    SF
    MS-Off Ver
    2010
    Posts
    2

    VBA code won't fill down

    I'm trying to translate the following code into VBA.


    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I have the following. I'd like to paste the results down to the end of column H, which varies from data run to data run, but the formula only fills in H2. How do I get it to go down to the end?

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: VBA code won't fill down

    Hi Kodachrome1,

    Welcome to the forum.

    It is always a good idea to post a copy of your workbook. Sanitized, of course, for confidential information.

    Having said that, I think I can see your problem!

    Your variable Hrow does not appear to be assigned a value. Therefore it will always write to H2. Perhaps you could simply replace Hrow with c.

    I hope this helps, please let me know!

    Regards,

    David

    Please remember, your request is clearer if you attach a sample workbook.
    - Click on Go Advanced and click on the Paper Clip.

    If this has been of assistance, please advise.
    - Please click on the *Add Reputation button at the bottom of helpful responses.

    Please mark your thread as SOLVED:
    - Click Thread Tools above your first post, select "Mark your thread as Solved".

    If several people have responded, when you reply please make it clear WHO you are responding
    to by mentioning their name.

+ 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. Code to fill down cells
    By kosherboy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-22-2014, 01:41 PM
  2. Can I use one fill code to fill comboboxes in multiple forms?
    By 0612Man in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-18-2012, 02:57 PM
  3. [SOLVED] Fill down VBA Code
    By spurthi008 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-04-2012, 04:50 AM
  4. Fill down VBA Code
    By joannakf in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-15-2012, 08:08 PM
  5. [SOLVED] Fill down VBA Code
    By joannakf in forum Excel General
    Replies: 1
    Last Post: 05-14-2012, 07:34 PM
  6. Fill down code?
    By WasWodge in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-25-2010, 03:40 PM
  7. Fill formula with code
    By WhiteKelso in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-15-2007, 05:28 PM
  8. VB fill color code
    By jamphan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-16-2007, 12:16 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