+ Reply to Thread
Results 1 to 10 of 10

VBA code clean up help

Hybrid View

  1. #1
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,060

    Re: VBA code clean up help

    or
    Sub Button1_Click()
    Application.ScreenUpdating = 0
    Range("a5").Copy
    Range("c5").End(xlDown).Offset(1, 0).PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
    False, Transpose:=False
    Application.CutCopyMode = 0
    Application.ScreenUpdating = 1
    ActiveWorkbook.Save
    End Sub
    regards, J

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: VBA code clean up help

    @john55,

    Yeah you're right. I completely forgot about the Save part as well!
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  3. #3
    Registered User
    Join Date
    02-15-2012
    Location
    entsRif confftent
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: VBA code clean up help

    Winon and john55, thank you for your help! This is great

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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