Hi there- I have a question regarding my formatting macro. Bit of background: on one sheet I have created a module where the user selects a set of values (some in a list form) and enters in texts based off of 7 cells. Once those values are entered, the user then presses "submit". Now, what is supposed to happen is that the values transfer to another sheet where it lists their entries into a chart format. When I did the formatting macro, all I did was select a cell, press '=' click the previous sheet, select the cell it needs to copy to and press enter:
Range("B3").Select
Sheets("Forecasting Module").Select
Range("F12").Select
This is repeated 7 times for all values, then I stopped recording and assigned the macro to the button- and it works (kinda). My issue is that when I try to submit a second entry with different values, it overrides my previous entry, and I need it to continuously add on my second sheet. Any help is greatly appreciated! Here is the macro currently used:
Range("B3").Select
Sheets("Forecasting Module").Select
Range("F12").Select
This is repeated 7 times for all values, then I stopped recording and assigned the macro to the button- and it works (kinda). My issue is that when I try to submit a second entry with different values, it overrides my previous entry, and I need it to continuously add on my second sheet. Any help is greatly appreciated! Here is the macro currently used:
Code:
Sub Forecasting1()
'
' Forecasting1 Macro
'
'
Range("B3").Select
Sheets("Forecasting Module").Select
Range("F12").Select
Sheets("Test Macro").Select
Range("B3").Select
ActiveCell.FormulaR1C1 = "='Forecasting Module'!R[3]C[2]"
Range("C3").Select
ActiveCell.FormulaR1C1 = "='Forecasting Module'!R[8]C[1]"
Range("D3").Select
ActiveCell.FormulaR1C1 = "='Forecasting Module'!R[8]C[5]"
Range("E3").Select
ActiveCell.FormulaR1C1 = "='Forecasting Module'!R[3]C[4]"
Range("F3").Select
ActiveCell.FormulaR1C1 = "='Forecasting Module'!R[13]C[-2]"
Range("G3").Select
ActiveCell.FormulaR1C1 = "='Forecasting Module'!R[3]C[6]"
Range("H3").Select
ActiveCell.FormulaR1C1 = "='Forecasting Module'!R[8]C[5]"
Rows("4:4").Select
Selection.Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
Range("D3").Select
Selection.NumberFormat = "General"
Range("G3:H3").Select
Selection.NumberFormat = "General"
Range("E6").Select
End Sub
Last edited by a moderator: