Argument not optional problem If Not Intersect Private Sub Worksheet Change

DeeEmmEss

New Member
Joined
Nov 25, 2015
Messages
43
I have a woworksheet which gathers data from an external source and is continually updating - similar to stock prices. I am trying to copy a range of data in i8:i40. Have tried numerous ways but without success. Reading various forums the below seems most logical to meet my needs but i'm getting an error - Argument not optional, on the Intersect - below is my code.

Private Sub Worksheet_Change(ByVal Target As Range)

If Not Intersect(Target.Range("I8:I32")) Is Nothing Then
Columns("BT").EntireColumn.Insert

Range("BT8:BT40").Value = Range("I8:I40").Value


End If

End Sub

Suggestions as to where I'm going wrong welcomed.
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
There should be a comma there, not a full stop:

Rich (BB code):
If Not Intersect(Target, Range("I8:I32")) Is Nothing Then
 
Upvote 0
Solution

Forum statistics

Threads
1,214,657
Messages
6,120,769
Members
448,991
Latest member
Hanakoro

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