ActiveCell to Column J

HockeyDiablo

Board Regular
Joined
Apr 1, 2016
Messages
182
Code:
Sub macro1()

If IsEmpty(ActiveCell.Offset(0, 10).Value) = True Then                     'checks to see if the field is blank first

ActiveCell.Cut Destination:=Cells(ActiveCell.Columns("j"))      '  <-----heres where I go fuzzy, had it working from colB to J, but my colB will change

ActiveCell.Offset(1, 0).Select                                                        'Just wanted to go to the next row

Else
    MsgBox "There is data in Column J already"
End If
    
End Sub



I want any activecell "regardless of column" to be cut and pasted in column J, the row will remain the same.
 
Last edited:

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Try...

Code:
Destination:=Cells(ActiveCell.Row, "j")


Could VBA insert into Col"J" if there is already text inside? and separate that by a , or similar symbol?

Example: Hockey 'was already in col"J"', [run macro] whilst Football exists in activecell, Result: Hockey, Football
 
Upvote 0
Code:
Cells(ActiveCell.Row, "j").Value = Cells(ActiveCell.Row, "J").Value & ", " & ActiveCell.Value
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top