excel - VBA Cut and Paste Based on Drop Down Lists -


hoping can :)

i'm working on spreadsheet has 2 different drop down variables 3-4 options in drop down each. i.e first drop down has option {2-tier, 3-tier, 4-tier, 40-tier} , second can {2-tier, 3-tier, 4-tier}. i'm new vba, , have ever worked sql before, i'm kind of shooting in dark here.

basically, based on drop down selected, spreadsheet "copy , paste" pricing grid corresponding other tab, , paste on "set sheet". since there 2 drop downs, imagine columns 8-16 being used first pricing grid , 18 down being used second set of pricing grids.

here's kind of have far:

     sub ifs()     if worksheets("set table").range(b3) = "2-tier"     worksheets("2 tier mec rates").range(a1, f3).copy destination:=worksheets("set table").range(a7)  elseif if worksheets("set table").range(b3) = "3-tier"     worksheets("3 tier mec rates").range(a1, f4).copy destination:=worksheets("set table").range(a7)  elseif if worksheets("set table").range(b3) = "4-tier"     worksheets("4 tier mec rates").range(a1, f5).copy destination:=worksheets("set table").range(a7)  elseif if worksheets("set table").range(b3) = "40-tier"     worksheets("7 tier mec rates").range(a1, f8).copy destination:=worksheets("set table").range(a7)      end if  if worksheets("set table").range(b4) = "2-tier"     worksheets("2 tier lm rates").range(a2, e12).copy destination:=worksheets("set table").range(a18)  elseif worksheets("set table").range(b4) = "3-tier"     worksheets("3 tier lm rates").range(a2, e15).copy destination:=worksheets("set table").range(a18)  elseif worksheets("set table").range(b4) = "4-tier"     worksheets("4 tier lm rates").range(a2, e18).copy destination:=worksheets("set table").range(a18)  end if  end sub 

my other fear here [other i'm totally doing wrong], pricing tables have formulas based on other variables determine correct pricing, , somehow messed in of this.

any have awesome :)

thanks


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -