excel vba

  • Thread starter Thread starter bforster1
  • Start date Start date
B

bforster1

Tom O. Thanks for all your suggestions they are perfect. Can you tel
me how to hard code the % of revenue numbers??

Thank
 
Assume the calculation result (% of Revenue) will be in B9

and you want to begin recording results in column M

Further assume that you will have some identifying entry in A9 and you want
those in column N

N1: Title
M1: % of Revenue

Private Sub CommandButton1_Click()
Application.CalculateFull
set rng = cells(rows.count,"M").end(xlup)(2)
rng.Value = Range("B9").Value
rng.NumberFormat = Range("B9").NumberFormat
rng.offset(0,-1).Value = Range("A9").Value
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top