+ Reply to Thread
Results 1 to 10 of 10

Help with spread sheet (Hard to explain)

Hybrid View

  1. #1
    facebuddies
    Guest

    Help with spread sheet (Hard to explain)

    Hi

    I would like to make a spread sheet where i enter the following text


    FREE DOMAIN NAME
    FREE DOMAIN NAME
    FREE DOMAIN NAME
    FREE DOMAIN NAME
    FREE DOMAIN NAME
    FREE DOMAIN NAME
    FREE DOMAIN NAME

    Which scools down about 100+ but then i would like the spread sheet to be able to add the letter 1 after then the number 2 and so on like this

    FREE DOMAIN NAME 1
    FREE DOMAIN NAME 2
    FREE DOMAIN NAME 3
    FREE DOMAIN NAME 4
    FREE DOMAIN NAME 5
    FREE DOMAIN NAME 6
    FREE DOMAIN NAME 7

    And so on upto about 4000, is there a way i can do this as i don want to enter each number in manually

    Thanks

    Kerr

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    Try

    ="FREE DOMAIN NAME "&ROW(B1)

    and drag down. Then Paste special values

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    facebuddies
    Guest
    Thanks

    I still dont get it

    Can some one give me a step by step guide please

    :-)

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    Copy ="FREE DOMAIN NAME "&ROW(B1)into cell A1 and then drag down.

    It's a formula. It joins the Text with Row(B1) which returns a 1.

    When you drag down B1 changes to B2 etc which returns 2 etc

    VBA Noob

  5. #5
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    VBA Noob ' s formula is perfect ...

    Position your cursor in any cell of row 1... best place cell A1
    Type formula
    ="FREE DOMAIN NAME "&ROW()
    press enter

    Then place yourself in cell A1
    Edit Copy
    go down
    Edit Paste

    Does it work ...?

    HTH
    Carim

  6. #6
    facebuddies
    Guest
    Thanks guys that works :-)


    Is it possible for some way to be able to instead of having to cut and paste manually a way where it can be done automaicly upto a line of 10,000 with a macro or something,

    Anyone help please

    :-)

  7. #7
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    Just use the fill handle

    http://www.mvps.org/dmcritchie/excel/fillhand.htm

    VBA Noob

  8. #8
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi again

    Sub Copy()
    Dim i As Integer
    For i = 1 To 10000
    Cells(i, 1).Select
    ActiveCell.Formula = "= ""FREE DOMAIN NAME ""&ROW()"
    Next i
    End Sub
    HTH
    Carim

+ 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