Results 1 to 4 of 4

VBA to Clean Large Worksheet

Threaded View

excelnovice246 VBA to Clean Large Worksheet 11-01-2022, 11:20 AM
alansidman Re: VBA to Clean Large... 11-01-2022, 11:27 AM
excelnovice246 Re: VBA to Clean Large... 11-01-2022, 11:30 AM
Logit Re: VBA to Clean Large... 11-01-2022, 03:30 PM
  1. #1
    Registered User
    Join Date
    11-01-2022
    Location
    ireland
    MS-Off Ver
    2013
    Posts
    2

    VBA to Clean Large Worksheet

    hello,
    I need to pull data from a large live worksheet to clean it so i can feed it into another workbook.
    the data i need is column C:G provided there is data in column F, If F has no data then I do not want those rows.
    I tried leveraging a VBA but I must not be entering the correct requests as the data is not copying over. I don't fully understand the VBA to find the issue as am very new to amending codes and am only back to work after 3 years of new mom life and lockdown.

    Private Sub CommandButton1_Click()
    a = Worksheets("2023").Cells("3:6").End(x1Up).Row
    For I = 2 To a
    If Worksheets("2023").Cells(1, 5).Value = "istext" Then
    Worksheets("2023").Rows(I).Copy
    Worksheets("clean data").Activate
    b = Worksheets("clean data").Cells(Row.Count, 1).End(x1Up).Row
    Worksheets("clean data").Cells(b + 1, 1).Select
    activatesheet.Paste
    Worksheets("2023").Activate
    
    
    End If
    Next
    
    Application.CutCopyMode = False
    This Workbook.worsksheets("2023").Cells(1, 1).Select
    
    End Sub
    I have attached an image for reference the data i need to copy has red headings the spreadsheet is live and large- currently in table formatting and is updated regularly.

    thanks
    Dee
    Last edited by alansidman; 11-01-2022 at 11:23 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: 06-06-2018, 03:28 PM
  2. macro formula to clean data in large file
    By badams1234 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-07-2014, 11:35 PM
  3. [SOLVED] VBA Code to optimize and clean data- clean out numerical/ or symbol
    By tracylsr in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-05-2012, 04:21 PM
  4. Nice clean way to Measure/set EOD of worksheet
    By MrHockey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-10-2010, 04:52 AM
  5. Clean Function to Clean Entire Sheet
    By gema in forum Excel General
    Replies: 7
    Last Post: 11-05-2009, 10:07 AM
  6. Clean up Worksheet
    By willie64 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-08-2005, 05:45 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