+ Reply to Thread
Results 1 to 7 of 7

Autofill to lastrow

Hybrid View

Pedros Autofill to lastrow 01-10-2007, 01:21 AM
mudraker Pedros This will do what... 01-10-2007, 01:29 AM
Zygan Autofill 01-10-2007, 01:34 AM
Trebor76 Hi Pedros, Using the last... 01-10-2007, 02:13 AM
mudraker Zygan In your code you... 01-10-2007, 06:59 AM
justam Sub Macro1() 'assuming... 01-10-2007, 07:55 PM
Pedros Thanks to everyone for... 01-11-2007, 12:55 AM
  1. #1
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Zygan

    In your code you have used Range("A1:A2653")

    Pedros required code to autofill to the last active row, your code does not identify the last active row.

  2. #2
    Registered User
    Join Date
    04-24-2004
    Posts
    10
    Sub Macro1()
    'assuming all cells are contiguous
    Dim Rws As Integer
    Columns("A:A").Insert Shift:=xlToRight
    [a1] = "SortNo"
    Rws = [a1].CurrentRegion.Rows.Count
    [a2] = 1
    Range(Cells(2, 1), Cells(Rws, 1)).DataSeries
    End Sub

  3. #3
    Registered User
    Join Date
    10-19-2005
    Posts
    45
    Thanks to everyone for replying!!


    Mudraker and Trebor76, both of your solutions work perfectly.

    I have included mudrackers in my macro and it is now working as I required.

    Thanks again,

    Pedros.

+ 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