Good afternoon,
I just started using VB in Excel to make a sheet to tabulate hours toward projects. Using a button I want to populate a set of cells with data from the sheet which I am doing with the following code:
ActiveCell = Range("B1")
ActiveCell.Offset(0, 1).Activate
ActiveCell = Range("F17") + Range("G17")
ActiveCell.Offset(0, 1).Activate
ActiveCell = Range("K1")
ActiveCell.Offset(0, 1).Activate
ActiveCell = Range("K2")
ActiveCell.Offset(0, 1).Activate
ActiveCell = Range("K3")
What I want to do is set variable 1= B1 , Variable2 =F17, variable3= G17, variable 4= var2+var3 etc. and then later paste variable1,2,3,4 to specific locations, say d1,d2,d3,d4.
How do I execute the paste portion of the command?
I just started using VB in Excel to make a sheet to tabulate hours toward projects. Using a button I want to populate a set of cells with data from the sheet which I am doing with the following code:
ActiveCell = Range("B1")
ActiveCell.Offset(0, 1).Activate
ActiveCell = Range("F17") + Range("G17")
ActiveCell.Offset(0, 1).Activate
ActiveCell = Range("K1")
ActiveCell.Offset(0, 1).Activate
ActiveCell = Range("K2")
ActiveCell.Offset(0, 1).Activate
ActiveCell = Range("K3")
What I want to do is set variable 1= B1 , Variable2 =F17, variable3= G17, variable 4= var2+var3 etc. and then later paste variable1,2,3,4 to specific locations, say d1,d2,d3,d4.
How do I execute the paste portion of the command?