Hi everyone,
I have just recently started and also I am learning on my own, the VBA code for Macros in Excel.
I just thought, I'll get my problem solved if and only if I share it with scholars over here.
I have a code within a sheet which generates Username when activecell is target. Everything is fine. But, when I run the macro UPDATE to update and refresh the workbook, one entire column is filled with USERNAME!!! I tried so many things, but i am not able to debug it effectively.
private sub worksheet_change(byval target as range)
...
...
if target.cells.column = 11 then
.offset(0,13).value = application.username
This is within a sheet. The refresh/update code is on the main worksheet.
Please help me!
I have just recently started and also I am learning on my own, the VBA code for Macros in Excel.
I just thought, I'll get my problem solved if and only if I share it with scholars over here.
I have a code within a sheet which generates Username when activecell is target. Everything is fine. But, when I run the macro UPDATE to update and refresh the workbook, one entire column is filled with USERNAME!!! I tried so many things, but i am not able to debug it effectively.
private sub worksheet_change(byval target as range)
...
...
if target.cells.column = 11 then
.offset(0,13).value = application.username
This is within a sheet. The refresh/update code is on the main worksheet.
Please help me!