Set up the "Connection" range in your spreadsheet like this:
Then write your table statement as follows:
table xTab IN "amplxl" "3_Bus_Data.xlsx" "Connection":
[BB_FROM, BB_TO], x, Limit;
The column headings "BB_FROM" and "BB_TO" do not need to be the names of sets in the AMPL model. You can give them any names you want, as long as the same names appear as shown in the corresponding table statement.
Currently you use an AMPL "set BBCONNECT := . . ." statement to specify the members of the set BBCONNECT. But if you prefer, you can
instead read the members of set BBCONNECT from the same spreadsheet range that you are using for x and LImit, by writing your table statement like this:
table xTab IN "amplxl" "3_Bus_Data.xlsx" "Connection":
BBCONNECT <- [BB_FROM, BB_TO], x, Limit;
In the AMPL book, search on "multidimensional" in Chapter 10 for more information about reading 2-dimensional parameters (like x and Limit) using table statements.