+ Reply to Thread
Results 1 to 6 of 6

Make this code column specific?

Hybrid View

  1. #1
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Debug Issue

    Hi Roy

    'clear only cell in A
                   Sheets("Teams left").Cells("A" & j).ClearContents
    for some reason the code does not work and this line is highlighted when i try and Debug the code.

    PLease help (Hands in the prayer position)

  2. #2
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628
    Try to change so your code:
    Sheets("Teams left").Range("A" & j).ClearContents
    or
    Sheets("Teams left").Cells(j, "A").ClearContents
    Regards,
    Antonio

  3. #3
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Thumbs up Woo Hoo

    Antonio Your a top man,

    i been messing with that code for ages too

    Thanks very much!!

+ 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