+ Reply to Thread
Results 1 to 5 of 5

clear content of cell F22 in each worksheet when i open the workbook

  1. #1
    Registered User
    Join Date
    08-29-2018
    Location
    lebanon
    MS-Off Ver
    2010
    Posts
    8

    Exclamation clear content of cell F22 in each worksheet when i open the workbook

    Can someone help me with that code? I'll aprecciate it.
    clear content of cell F22 in each worksheet when i open the workbook

  2. #2
    Valued Forum Contributor
    Join Date
    06-29-2014
    Location
    Australia
    MS-Off Ver
    MSO 365
    Posts
    1,104

    Re: clear content of cell F22 in each worksheet when i open the workbook

    Hello Nassark,

    In the Workbook module, place the following code:-


    Please Login or Register  to view this content.
    To implement thecode:-

    - Go to the VB Editor by pressing Alt + F11.
    - Over in the Project Explorer, double click on ThisWorkbook.
    - In the big white code field, paste the above code.

    Save the workbook with the .xlsm file extension then close it. When you next open the workbook, cell F22 in all sheets will be cleared.


    I hope that this helps.

    Cheerio,
    vcoolio.

  3. #3
    Registered User
    Join Date
    08-29-2018
    Location
    lebanon
    MS-Off Ver
    2010
    Posts
    8

    Re: clear content of cell F22 in each worksheet when i open the workbook

    The Module ThisWorkbook I have the next codes

    Please Login or Register  to view this content.
    how can i join the code u gave me with this one? i already tried and it gives me and error with f22.
    Last edited by nassark; 08-31-2018 at 07:45 AM.

  4. #4
    Registered User
    Join Date
    08-29-2018
    Location
    lebanon
    MS-Off Ver
    2010
    Posts
    8

    Re: clear content of cell F22 in each worksheet when i open the workbook

    any help? please

  5. #5
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,308

    Re: clear content of cell F22 in each worksheet when i open the workbook

    If you want it to happen on opening workbook you need to add it to Workbook_Open.
    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

+ 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. open worksheet in a different workbook based on cell name in original workbook
    By thara95 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-03-2017, 07:38 AM
  2. Clear Content When a cell value = 0
    By Captain Hook in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-22-2017, 01:06 PM
  3. [SOLVED] Clear content referencing another cell's same content
    By papusale in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-08-2015, 05:21 AM
  4. [SOLVED] Worksheet Change Event to Clear Content of the Cells value & Re-sort the data
    By Faridwahidi in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 11-13-2014, 03:09 PM
  5. How to clear cell's content?
    By NZL in forum Excel General
    Replies: 3
    Last Post: 03-09-2013, 10:04 AM
  6. using cell content to reference a worksheet tab name in second workbook
    By Conor in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-29-2007, 09:32 AM
  7. Using cell content to access another worksheet in same workbook
    By ScubaBum in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-28-2006, 11:40 PM

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