Hello,
Need your help on a VBA code modification.
We have an existing excel SQL query that works, but there are group names hard-coded which I wanted to revisit. As you know this works great if nothing changes but can be very awkward and inconvenient when changes are made frequently.
Just was a little curious on how hard it would be to change the code, I searched the web and couldn't find any clear solutions, so I am reaching out for help.
If all possible I would like to change the current code to read these group names from the existing workbook
Our code currently looks like below: 'Please Don't laugh,'
SELECT "ASSIGNED_TO_GROUP_, ASSIGNED_TO_INDIVIDUAL_, TICKET_ID_ , etc...."
FROM WAREHOUSE_MANAGEMENT
WHERE ASSIGNED_TO_INDIVIDUAL_ <> 'John'
AND ASSIGNED_TO_GROUP_ IN ( 'GROUP1' , 'GROUP2', 'GROUP3', 'GROUP4', 'GROUP5')
ORDER BY
TICKET_ID_
Need your help on a VBA code modification.
We have an existing excel SQL query that works, but there are group names hard-coded which I wanted to revisit. As you know this works great if nothing changes but can be very awkward and inconvenient when changes are made frequently.
Just was a little curious on how hard it would be to change the code, I searched the web and couldn't find any clear solutions, so I am reaching out for help.
If all possible I would like to change the current code to read these group names from the existing workbook
- Tab called "valid names"
- Starting from column "A2"
- Until it reaches an empty cell.
Our code currently looks like below: 'Please Don't laugh,'
SELECT "ASSIGNED_TO_GROUP_, ASSIGNED_TO_INDIVIDUAL_, TICKET_ID_ , etc...."
FROM WAREHOUSE_MANAGEMENT
WHERE ASSIGNED_TO_INDIVIDUAL_ <> 'John'
AND ASSIGNED_TO_GROUP_ IN ( 'GROUP1' , 'GROUP2', 'GROUP3', 'GROUP4', 'GROUP5')
ORDER BY
TICKET_ID_