Say if you have got a form where you enter data for the Following deatils: Name , Age and address, how can you transfer this data to another sheet using a macro?What coding is needed?
if i want to transfer 3 values from a sheet called ' insert balance sheet' to another sheet called 'company balance sheet, what needs to be changed in this coding as it says the Me function is invalid.
Dim myRowCount As Integer
Dim myRng As Range
Set myRng = Sheets("insert balance data".Range("2:1"
myRowCount = Application.CountA(myRng)
With Sheets("company balance sheet"
.Cells(myRowCount + 10, 10).Value = .Range("a1".Value
.Cells(myRowCount + 11, 11).Value = .Range("b1".Value
.Cells(myRowCount + 12, 12).Value = .Range("c1".Value
End With
yes acron thats great that works qutie well. two other questions though. im using the following code:
Dim myRowCount As Integer
Dim myRng As Range
Set myRng = Sheets("insert balance data".Range("1:1"
myRowCount = Application.CountA(myRng)
With Sheets("company balance sheet"
.Cells(myRowCount + 5, 3).Value = myRng.Range("b8".Value
.Cells(myRowCount + 6, 3).Value = myRng.Range("b9".Value
.Cells(myRowCount + 8, 3).Value = myRng.Range("b11".Value
End With
End Sub
But for example instaed of the value being transeferred form cell b8 in the "insert balance sheet" to row 5 column 3 in the "company balance sheet" it is being transeferred to row6 column 3 any reason why?
Also what coding is needed to remove the value that you are transferring to another sheet form the original sheet?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.