+ Reply to Thread
Results 1 to 4 of 4

Clear Column Content

  1. #1
    Forum Contributor
    Join Date
    06-28-2011
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    115

    Clear Column Content

    Hello I need some help
    I want to create a button which if user click it will clear content of that column, reason I want to add button and not manually do it because I have column going from A to DS
    Thank you plz help me
    ty

  2. #2
    Valued Forum Contributor Sadath31's Avatar
    Join Date
    03-02-2011
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Office 365
    Posts
    452

    Re: Clear Column Content

    create a button and assign the code to it

    Sub Delete()
    Range("A:DS").clearcontents
    end sub

  3. #3
    Forum Contributor
    Join Date
    06-28-2011
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    115

    Re: Clear Column Content

    Hey thanx Sadath
    I created Button for it and it works like a charm
    I wanna know if I have a VBA code and create a button to put the code into that cell if I click on it after clearing contents of it
    here is the formula I want to enter in B1
    =PISampDat(COUNTER!$C$3,COUNTER!$A$7,COUNTER!$A$9,COUNTER!$A$11,0,"dmspi2p")
    ty

  4. #4
    Registered User
    Join Date
    06-29-2011
    Location
    MUMBAI
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    85

    Re: Clear Column Content

    Sub FormulaR1C1 ()
    Range ("b1").select
    ActiveCell.FormulaR1C1 ="=PISampDat(COUNTER!$C$3,COUNTER!$A$7,COUNTER!$A$9,COUNTER!$A$11,0,"dmspi2p")"
    end sub

+ 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