+ Reply to Thread
Results 1 to 5 of 5

Fill formula with code

  1. #1
    Registered User
    Join Date
    11-14-2007
    Posts
    29

    Fill formula with code

    Hi all,

    Here's my problem:

    I have a number in cell G5.

    I need help for a macro so that, for a definite number of times, a formula (G5 +1) will appear starting at G6 downwards. I think a FOR NEXT loop would work, but I'm clueless on what to do.
    It may look like this:
    For i = 1 to 25
    copy a formula downwards 25 times
    next i

    Please help. Thanks again for being there.


    WK

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Maybe

    Please Login or Register  to view this content.
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    11-14-2007
    Posts
    29

    Sorry, not working

    Quote Originally Posted by VBA Noob
    Maybe

    Please Login or Register  to view this content.
    VBA Noob
    Doesn't seem to do anything at all.

    Any more idea please.

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Missed off the G5 + 1 bit

    Try

    Please Login or Register  to view this content.
    VBA Noob

  5. #5
    Registered User
    Join Date
    11-14-2007
    Posts
    29

    Awesome; thanks a million

    Quote Originally Posted by VBA Noob
    Missed off the G5 + 1 bit

    Try

    Please Login or Register  to view this content.
    VBA Noob
    THanks a million. Works perfectly. (you're not a noob, of course; it would have taken me a million years to figure this one out. reference materials only helped to a limited extent. glad there's a forum like this. thanks again.)

    WK

+ 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