change the attributes of a network

I want to run different simulations of the same network but with the capacity of links changing for each simulation. I have an excel file with different sets of the capacity of links of a network. Is there any automatic way to change the capacity of links in the network using the data in the excel file?