+ Reply to Thread
Results 1 to 3 of 3

Code request to delete numbers in column B automatically

  1. #1
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Code request to delete numbers in column B automatically

    Hi,
    Please suggest me a code to delete the serial number in column 'B' if the cell in column 'C' is blank or I deleted the value in column 'C'.

    Please Login or Register  to view this content.

    In short if the cell in column 'C' is blank then there should not be a serial number in column 'B'. The code should run only when there is a value in column 'C' automatically. I want to insert this code in sheet module to run it automatically after theere is any change in column 'C'.

    Any help will be appreciated.

    Thanking you,
    Sincerely,

    mso3

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Code request to delete numbers in column B automatically

    Something like this will clear the cell from column B anytime you clear a cell in column C.

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: Code request to delete numbers in column B automatically

    I have integrated the 2 codes but now I'm getting compile error 1004:
    auto fill method failed

    on line

    Please Login or Register  to view this content.
    If I delete the entire column 'C' then this error occurs.

    Please Login or Register  to view this content.
    Thanking you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Automatically delete column once the date in that column has expired
    By TAN MICCOLI in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-30-2014, 09:26 PM
  2. Run Macro Automatically When delete row , changes cell,delete column
    By elevisse in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-27-2012, 07:42 AM
  3. [SOLVED] Delete Cell Numbers of Column B From Column A (Column B Small and Column A too big)
    By it_electronics2000 in forum Excel General
    Replies: 4
    Last Post: 04-07-2012, 09:14 AM
  4. [SOLVED] Delete Cell Numbers of Column B From Column A (Column B Small and Column A too big)
    By it_electronics2000 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-06-2012, 11:13 AM
  5. [SOLVED] delete numbers and replace with numbers from adjacent column
    By troysie in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-13-2010, 05:31 AM

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