+ Reply to Thread
Results 1 to 10 of 10

Insert & Sequentially Number Column

Hybrid View

  1. #1
    Ingolf
    Guest

    Re: Insert & Sequentially Number Column

    Hi,

    instead of Cells(2, 1).End(xlDown)

    use Cells(Rows.Count, 1).End(xlUp)

    to refer to the last cell containing data in column A.

    Regards,
    Ingolf


  2. #2
    dee
    Guest

    Re: Insert & Sequentially Number Column

    Hi,
    If I record:
    Columns("A:A").Select
    Selection.Insert Shift:=xlToRight
    Range("A1").Select
    ActiveCell.FormulaR1C1 = "Avnet Key"
    Range("A2").Select
    ActiveCell.FormulaR1C1 = "1"
    Range("A3").Select
    ActiveCell.FormulaR1C1 = "2"
    Range("A2:A3").Select

    Where do I put your code?

    Thanks
    --
    Thanks!

    Dee


    "Ingolf" wrote:

    > Hi,
    >
    > instead of Cells(2, 1).End(xlDown)
    >
    > use Cells(Rows.Count, 1).End(xlUp)
    >
    > to refer to the last cell containing data in column A.
    >
    > Regards,
    > Ingolf
    >
    >


+ 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