Transmembrane channels formed by functionalized hydrazide macrocycles are reported. The different pH values of buffer solutions have a significant effect on the K+/Cl- selectivity of the macrocycles. This unique transport behavior is mainly induced by the different distributions of charges in the tubular channels under various pH values.