+ Reply to Thread
Results 1 to 3 of 3

VBA Code to Fill Update Transactions Sheet With Selected Year

  1. #1
    Banned User!
    Join Date
    06-18-2021
    Location
    Peru
    MS-Off Ver
    2010, Microsoft 365
    Posts
    431

    VBA Code to Fill Update Transactions Sheet With Selected Year

    Hello,

    Is it possible to have code that will fill the Update Transactions sheet from the Transactions sheet with the selected year in cell B3 but do not include columns D and E so that these can be manually entered?

    Thank you very much

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Cool Hello ! Try this !


    According to your attachment a VBA demonstration for starters to paste to the Update Transactions worksheet module :

    PHP Code: 
    Sub Demo1()
        
    Dim L&
            
    = [N(B3)]
            
    Application.ScreenUpdating False
        With 
    [B6].ListObject
            
    If .ListRows.Count Then .DataBodyRange.Clear
        With Sheet3
    .ListObjects(1).Range.Rows
            
    .AutoFilter 1">=1/1/" LxlAnd"<=12/31/" L
             L 
    Application.Subtotal(103, .Columns(1))
             If 
    1 Then .Range("A2:B" & .Count).Copy [B7]: .Range("E2:F" & .Count).Copy [F7] Else Beep2
        End With
            
    .Resize .Range.Resize(L)
        
    End With
            Application
    .ScreenUpdating True
    End Sub 
    ► Do you like it ? ► So thanks to click on bottom left star icon « Add Reputation » !
    Last edited by Marc L; 09-10-2021 at 09:09 AM. Reason: simplication …

  3. #3
    Banned User!
    Join Date
    06-18-2021
    Location
    Peru
    MS-Off Ver
    2010, Microsoft 365
    Posts
    431

    Re: VBA Code to Fill Update Transactions Sheet With Selected Year

    This code clears columns D and E which I need to input the Categories and Subcategories please.
    Last edited by BillySpivy; 09-12-2021 at 09:46 AM.

+ 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. [SOLVED] auto update year in cell value and in macro code
    By k1dr0ck in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-27-2018, 03:20 AM
  2. Automatically update year interval cycles from year to year
    By trumptight in forum Word Programming / VBA / Macros
    Replies: 8
    Last Post: 08-21-2014, 10:38 PM
  3. Replies: 22
    Last Post: 09-20-2013, 02:00 PM
  4. Replies: 2
    Last Post: 09-17-2013, 07:12 PM
  5. [SOLVED] how to update a sheet only once when it is selected
    By blackspiral in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-03-2013, 01:55 PM
  6. CommandBox Code to update a selected WorkSheet from a UserForm
    By NickR1 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 01-09-2013, 07:48 PM
  7. Update values in selected row Rather than Insert new row in 2nd sheet
    By coreytroy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-02-2007, 01:03 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