Automatic Feed

philb99

Active Member
Joined
Feb 3, 2014
Messages
410
Office Version
  1. 2013
Platform
  1. Windows
Hi - I have 28 Support Leaders each have a Group number allocated to them from 1-28. I am trying to get an automatic feed into a column next to where once you select a support leader their group number will automatically feed into the next column.

However there will be occasions when a Support Leader will not be required and N/A entered. In the next column we have the date a SL has been assigned therefore is there anyway that when N/A has been selected an automatic N/A is entered.

I'm sure its something simple.
 
Last edited:
I tested the macro using the file you posted and it worked as you requested. Are macros enabled in your workbook? If they are, then please upload a copy of the file that isn’t working for you, de-sensitized if necessary.
Thanks – the macro can now be run when I key partner, with Not Required and N/A self-populate the columns

However when I key John Mumber Run time error 438 appears which points to the code

Set fnd = Sheets("Sheet2").Range("A:A").Fid(Target.Value, LookIn:=xlValues, lookat:=xlWhole)

Even when I delete John Mumber and / or Partner the Run time error appears.

 
Upvote 0

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Oops!! There was a typo in that line. Replace that line of code with this one:
Rich (BB code):
Set fnd = Sheets("Sheet2").Range("A:A").Find(Target.Value, LookIn:=xlValues, lookat:=xlWhole)
 
Upvote 0
Oops!! There was a typo in that line. Replace that line of code with this one:
Rich (BB code):
Set fnd = Sheets("Sheet2").Range("A:A").Find(Target.Value, LookIn:=xlValues, lookat:=xlWhole)
Works a treat - thank you.

How would I change the code if the columns were moved to Columns Q, R & S as opposed to B,C & D
 
Upvote 0
You are very welcome. :)
How would I change the code if the columns were moved to Columns Q, R & S as opposed to B,C & D
Replace this line of code:
VBA Code:
If Target.Column <> 2 Then Exit Sub
with this line:
VBA Code:
If Target.Column <> 17 Then Exit Sub
 
Upvote 0
Solution
You are very welcome. :)

Replace this line of code:
VBA Code:
If Target.Column <> 2 Then Exit Sub
with this line:
VBA Code:
If Target.Column <> 17 Then Exit Sub
perfect - thank you for your support
 
Upvote 0

Forum statistics

Threads
1,223,575
Messages
6,173,149
Members
452,503
Latest member
AM74

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