Macros and command buttons

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm trying to set a cell (D33) to read 8% based on the click of a command button (in cell C33)

I've never used Macro's before and can't figure it out. Any help would be appreciated.
 
Put this in the macro

Range("E1").value = "8%"

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

Michael said:
I'm trying to set a cell (D33) to read 8% based on the click of a command button (in cell C33).

I've never used Macro's before and can't figure it out. Any help would be
appreciated.
 
Something like:

'CoomandButton
Private Sub CommandButton1_Click()

Range("D33") = Range("C33") * 0.08 & "%"

End Sub

'Worksheet Change
Private Sub Worksheet_SelectionChange(ByVal Target As Range)

Range("D33") = Range("C33") * 0.08 & "%"

End Sub

/Roge
 

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