lezawang
Well-known Member
- Joined
- Mar 27, 2016
- Messages
- 1,805
- Office Version
- 2016
- Platform
- Windows
Hi
Why the code below is giving me an error message. Complaining about Columns("a")? while second line is fine with using Rows(1).
I check the link below and the author used Columns("C") no probelm.
https://bettersolutions.com/excel/rows-columns/vba-code.htm
Thank you so much
Why the code below is giving me an error message. Complaining about Columns("a")? while second line is fine with using Rows(1).
I check the link below and the author used Columns("C") no probelm.
https://bettersolutions.com/excel/rows-columns/vba-code.htm
Thank you so much
Code:
Sub myrange_3()
'access rows and cols
Workbooks(1).activesheets.Columns("A").Value = 2
Workbooks(1).activesheets.Rows(1).Value = 1
End Sub