StrawberryDreams
Board Regular
- Joined
- Mar 26, 2022
- Messages
- 79
- Office Version
- 365
- Platform
- Windows
- MacOS
- Mobile
Still learning vba...
I have a simple Data entry User form (sourceSheet) , that is currently taking the cell B2 and copying it into another worksheet table (dataSheet)
The following code works:
dataSheet.Cells(nextRow, 2).Value = sourceSheet.Range("B2").Value
I would like to change what it does so the value it is copying B2 is divided by 100. How do
I write the VBA to do that ---- the following does not work :
dataSheet.Cells(nextRow, 2).Formula = "=sourceSheet.Range(B2).Value / 100"
My goal is to take the value the user enter in the data entry sheet and turn it into percent form in the data table.
Cheers
I have a simple Data entry User form (sourceSheet) , that is currently taking the cell B2 and copying it into another worksheet table (dataSheet)
The following code works:
dataSheet.Cells(nextRow, 2).Value = sourceSheet.Range("B2").Value
I would like to change what it does so the value it is copying B2 is divided by 100. How do
I write the VBA to do that ---- the following does not work :
dataSheet.Cells(nextRow, 2).Formula = "=sourceSheet.Range(B2).Value / 100"
My goal is to take the value the user enter in the data entry sheet and turn it into percent form in the data table.
Cheers