+ Reply to Thread
Results 1 to 2 of 2

Fill Problem

Hybrid View

  1. #1
    Paputxi
    Guest

    Fill Problem

    Say I have formulas in A1 and B1. I want to write VBA code to fill the
    formulas down to, say, row 20 (which will actually be an input value). What
    is some VBA code for doing that?

  2. #2
    Tom Ogilvy
    Guest

    Re: Fill Problem

    Sub BBB()
    Dim rw As Long
    rw = Application.InputBox( _
    "Enter row to fill to", Type:=1)
    Range("A1:B1").AutoFill _
    Destination:=Range("A1:B" & rw)
    End Sub

    --
    Regards,
    Tom Ogilvy



    "Paputxi" <Paputxi@discussions.microsoft.com> wrote in message
    news:1ABE5B6D-8D7E-46AD-BDD6-7C5E9CF1D64C@microsoft.com...
    > Say I have formulas in A1 and B1. I want to write VBA code to fill the
    > formulas down to, say, row 20 (which will actually be an input value).

    What
    > is some VBA code for doing that?




+ 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