• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Adjust cell after macro.

Belleke

Well-Known Member
Sorry, It is really not my day, I need some help again.
I have this code
Code:
Private Sub CommandButton1_Click()
E_name = [B30]
Sav = Application.WorksheetFunction.VLookup(E_name, Blad2.Range("A13:E21"), 5, False)
[A30] = Sav + [G30]
End Sub
This works fine, but Sav should be also Sav + [G30] at the end of code
I feel like a complete i....t
Please advice
 
Hi ,

Just add a line of code to what you have posted :
Code:
Private Sub CommandButton1_Click()
    E_name = [B30]
    Sav = Application.WorksheetFunction.VLookup(E_name, Blad2.Range("A13:E21"), 5, False)
    [A30] = Sav + [G30]
    Sav = Sav + [G30]
End Sub
Narayan
 
Thank you Deepak an Naryan, I'll post and example as soon as possible (now everthing is in dutch)
@Narayan, I tryed Sav = Sav + [G30] but no go
 
Back
Top