Hi All,
Need urgent help to find the blank or used cell just after the Column header and paste the value with column header name till last blank cell in another column.
There are two condition:-
-> If the rows is filled with data then copy the column the column with Header name and paste it to another column.
-> If the rows is not filled with data and check the next blank cell, then copy only header name of the column and paste to another column.
I have used below code to solve this but i can paste the data only if the cell is filled.
Code:-
Any help is appreciated as this little urgent. Thanks in advance.
Need urgent help to find the blank or used cell just after the Column header and paste the value with column header name till last blank cell in another column.
There are two condition:-
-> If the rows is filled with data then copy the column the column with Header name and paste it to another column.
-> If the rows is not filled with data and check the next blank cell, then copy only header name of the column and paste to another column.
I have used below code to solve this but i can paste the data only if the cell is filled.
Code:-
Code:
Thisworkbook.Worksheets("Student").Activate
Range("C1").Select
Range(Selection, Selection.End(xlDown)).Select
Application.CutCopyMode = False
Selection.Copy
Thisworkbook.Worksheets("Marks").Activate
Range("A1").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
Any help is appreciated as this little urgent. Thanks in advance.
Attachments
Last edited: