+ Reply to Thread
Results 1 to 5 of 5

automated copy in table

  1. #1
    Registered User
    Join Date
    12-12-2006
    Posts
    63

    automated copy in table

    Hello, I have a macro where at one point I need to copy the same value in one column of a table. This is to be used on a number of tables but they will vary in how many rows they have.

    I'm using the code;

    Please Login or Register  to view this content.

    This works fine for all tables except ones that only have one row ie. in some cases the value in C5 does not need to be copied down as there are no more rows in the table. At the moment the macro will copy the value in C5 to all the cells in column C to the bottom of the Worksheet.

    is there any way to avoid this?

    many thanks
    Liam
    Last edited by VBA Noob; 08-06-2008 at 12:05 PM.

  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
    LiamF,

    Please wrap your code next time.

    Maybe

    Please Login or Register  to view this content.
    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
    Registered User
    Join Date
    12-12-2006
    Posts
    63
    hi, thanks. This seems to work in tables that only have one row but not in those with more than one row. ie. it's not copying the value in C5 down.

  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
    Sorry


    Try

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    12-12-2006
    Posts
    63
    works great. many thanks.

+ 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