+ Reply to Thread
Results 1 to 3 of 3

Clearing out cells in a column before writing to them

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    09-21-2012
    Location
    illinois
    MS-Off Ver
    Excel 2010
    Posts
    242

    Clearing out cells in a column before writing to them

    I am attempting to clear out a range before I write to it. I tried this code but unfortunately it also clears out all the formating. any suggestions?

    
     Range("SQLMatl").Clear
         Range("IQty").Clear
         Range("Comments").Clear
         Range("MatlQ").Clear

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Clearing out cells in a column before writing to them

    Probably with clear.content
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Clearing out cells in a column before writing to them

    As per Oeldere suggestion


    Range("SQLMatl").ClearContents
         Range("IQty").ClearContents
         Range("Comments").ClearContents
         Range("MatlQ").ClearContents

+ 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