Slow learner (me)

Asus

New Member
Joined
Jan 21, 2009
Messages
41
I have a Workbook_SheetChange I have modified from this board. I do not know how to modify it enough.
I have one line that says

Code:
Target.EntireRow.Cut Sheets("Transfer").Cells(Rows.Count, "A").End(xlUp).Offset(1)
Case Is = ""

well there are protected (or hidden cells in that row). so what do I say to stop the code from selecting the entire row. I only want the first 9 cells. really.

Thanks
 
Last edited by a moderator:

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
just shootin' from the hip here, but something like this should do the trick
Code:
Range("A" & Target.Row).resize(,9).Cut Sheets("Transfer").Cells(Rows.Count, "A").End(xlUp).Offset(1)

BTW, you got something against code tags?

EDIT -- Since you only posted the one line, it's tough to tell. But I do hope you've go some APPLICATION.ENABLEEVENTS toggles in there somewhere.
 
Upvote 0
No that was just a excerpt from the code. BTW I am new to this and not too sure of what i am doing. It would have been easier to learn this stuff 30 or 40 years ago when the mind absobed a bit better. Rightnow I am just picking up bits and peices from all the smart people here in on the board.
thanks for the info.
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,850
Members
449,051
Latest member
excelquestion515

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