+ Reply to Thread
Results 1 to 2 of 2

Filling In Data Beneath Current Rows

  1. #1
    Jasper
    Guest

    Filling In Data Beneath Current Rows

    For an application I am working on I need to have a macro to fill allready
    copied Data in the Rows beneath the allready filled rows. I wanted to use
    this rule:

    Range("a2").End(xlDown).Offset(1, 9).Select

    But I cant get it to work when I use it in the next macro:

    Windows("Kostenbeheerssysteem Vorm I 15 februari 2005.xls").Activate
    ActiveSheet.Paste
    Cells.Select
    With Selection
    .HorizontalAlignment = xlGeneral
    .VerticalAlignment = xlTop
    .WrapText = False
    .Orientation = 0
    .AddIndent = False
    .ShrinkToFit = False
    .MergeCells = False
    End With
    Cells.EntireColumn.AutoFit
    Rows("1:1").Select
    Selection.Delete Shift:=xlUp
    Columns("K:K").Select
    Range(Selection, Selection.End(xlToRight)).Select
    Selection.EntireColumn.Hidden = True
    Range("A1").Select
    End Sub

    Can anyone tell me what I am doing wrong? Thanks in Advance,


    Jasper

  2. #2
    Tom Ogilvy
    Guest

    Re: Filling In Data Beneath Current Rows

    You haven't told us what is wrong.

    --
    Regards,
    Tom Ogilvy

    "Jasper" <[email protected]> wrote in message
    news:[email protected]...
    > For an application I am working on I need to have a macro to fill allready
    > copied Data in the Rows beneath the allready filled rows. I wanted to use
    > this rule:
    >
    > Range("a2").End(xlDown).Offset(1, 9).Select
    >
    > But I cant get it to work when I use it in the next macro:
    >
    > Windows("Kostenbeheerssysteem Vorm I 15 februari 2005.xls").Activate
    > ActiveSheet.Paste
    > Cells.Select
    > With Selection
    > .HorizontalAlignment = xlGeneral
    > .VerticalAlignment = xlTop
    > .WrapText = False
    > .Orientation = 0
    > .AddIndent = False
    > .ShrinkToFit = False
    > .MergeCells = False
    > End With
    > Cells.EntireColumn.AutoFit
    > Rows("1:1").Select
    > Selection.Delete Shift:=xlUp
    > Columns("K:K").Select
    > Range(Selection, Selection.End(xlToRight)).Select
    > Selection.EntireColumn.Hidden = True
    > Range("A1").Select
    > End Sub
    >
    > Can anyone tell me what I am doing wrong? Thanks in Advance,
    >
    >
    > Jasper




+ 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