+ Reply to Thread
Results 1 to 4 of 4

Need VBA Code to Delete One particular sheet and clear data in 6 sheet

  1. #1
    Registered User
    Join Date
    10-16-2022
    Location
    australia
    MS-Off Ver
    2016
    Posts
    90

    Need VBA Code to Delete One particular sheet and clear data in 6 sheet

    Hi experts

    I have set of data which is stored in path location as excel file AMP_aus.xlsx ,i want delete the one particular sheet and clear range of another 6 sheet

    RAWDATA should be deleted.

    Remove Range A2:BG Leave First header row A1:BG1.
    These 6 sheet range should be clear
    ACOMMS
    AUSTRAC
    AML
    ACT_AUS
    AUS_NZ_SQUAD
    CTF

    file stored at C:\Users\Windows 10\Desktop\AMP_aus.xlsx

    find the attachment
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,498

    Re: Need VBA Code to Delete One particular sheet and clear data in 6 sheet

    AMP_aus.xlsx is a non macro workbook so you need to run the macro from another workbook.
    You also give us the path and folder where this workbook is stored so I assume we need to open the workbook, run the macro on it and save it again.
    The attachment has 7 sheets, one will be deleted so there will be 6 sheets only to clear. Is there a chance that there will be other sheets in this workbook?
    Not tested so try on a copy of your workbook.
    Please Login or Register  to view this content.
    Experience trumps academics every day of the week and twice on Sunday.

  3. #3
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,498

    Re: Need VBA Code to Delete One particular sheet and clear data in 6 sheet

    If you have more sheets in that workbook.
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    10-16-2022
    Location
    australia
    MS-Off Ver
    2016
    Posts
    90

    Re: Need VBA Code to Delete One particular sheet and clear data in 6 sheet

    Thanks alot Boss Solved!!

+ 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. VBA Code to copy sales data to different sheet and clear
    By akshay_401 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-15-2019, 08:00 AM
  2. [SOLVED] Macro to clear Data from Speficic sheet to last sheet
    By Howardc1001 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-26-2019, 08:28 AM
  3. Replies: 1
    Last Post: 05-10-2019, 05:05 AM
  4. Replies: 1
    Last Post: 12-09-2015, 01:24 PM
  5. Help...Auto save Data to another sheet and clear sheet....
    By akshay_401 in forum Excel General
    Replies: 0
    Last Post: 11-06-2014, 02:35 PM
  6. [SOLVED] VBA Code to Delete Rows of Data if Cells Contain the Same Value From Another Sheet
    By Darrellcoholic in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-02-2014, 06:15 AM
  7. multiple sheet data in 1 sheet then delete every sheet except the masterlist.
    By maria.blue44 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-13-2013, 11:48 AM

Tags for this Thread

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