You need to understand how Project works, so manually do what you think you need by editing the duration field directly, editing work or resource units.
Then record a macro of you doing what you want to get the relevant VBA code. Unless the task is happening now, use any method that does not set a task constraint. Task constraint change the critical path, require manual updating and cost you time and effort.
Happy programming
Rod Gill
Author of the one and only
Project VBA Book and VBA developer.
www.project-systems.co.nz