Results 1 to 7 of 7

Dynamic Range

Threaded View

  1. #1
    Registered User
    Join Date
    10-26-2009
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2007
    Posts
    2

    Dynamic Range

    Hi guys,

    I am rather new to all of this and would appreciate some help.

    I am trying to create a dynamic range, but just cant get it right:

    I want to get the autofill feature for C column stop once it has reached the same number of row entries in column A.

    ********************************************************
    Sub TestDynamicRange()
    '
    ' TestDynamicRange Macro
    ' TestDynamicRange
    '
    
    '
        Range("A1:B6").Select
        Selection.Copy
        Sheets("Sheet2").Select
        ActiveSheet.Paste
        Range("C1").Select
        Application.CutCopyMode = False
        ActiveCell.FormulaR1C1 = "Date"
        Range("C2").Select
        ActiveCell.FormulaR1C1 = "=TODAY()"
        Range("C2").Select
        Selection.AutoFill Destination:=Range("C2:C6"), Type:=xlFillDefault
        Range("C2:C6").Select
    End Sub
    **********************************************************

    Can anyone help me please?

    Thanks,

    Matt
    Last edited by royUK; 10-26-2009 at 08:07 AM.

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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