bigsistar12
New Member
- Joined
- Mar 10, 2011
- Messages
- 18
I am pretty new to Visual Basic and Macros. I can create general easy macros but this one Im scratching my head at.
I am trying to create a spreadsheet that takes information from a form I create and it copies the values within the form cells over to a spreadsheet that only needs the current values.
This is what I am doing
Sheets("Pricing Calculator").Select
Range("A2:D2").Select
ActiveCell.FormulaR1C1 = "michelle"
Sheets("worksheet 2").Select
Range("A2").Select
ActiveCell.FormulaR1C1 = "michelle"
the problem is that when i run this macro from pricing calculator to worksheet 2 it always populates the name michelle. I obviously know this is wrong but how do i get the current value only to be copied from one cell in pricing calculator to be pasted in worksheet two active cell? If I copy the cell entirely it pastes over with cell properties (ex color and size), which I dont want. My calculator is going to be updated and changed constantly but the new information that is added there needs to be saved in a master spreadsheet (wksht 2) not repopulating the old information.
example:
Sheets("worksheet 2").Select
Rows("3:3").Select
Selection.Insert Shift:=xlDown
Sheets("Pricing Calculator").Select
Range("A2:D2").Select
ActiveCell.FormulaR1C1 = "michelle"
Sheets("worksheet 2 ").Select
Range("A2").Select
ActiveCell.FormulaR1C1 = "michelle"
Sheets("Pricing Calculator").Select
Range("H3").Select
ActiveCell.FormulaR1C1 = "464604646"
Sheets("worksheet 2 ").Select
Range("B2").Select
id appreciate any help i can get.
I am trying to create a spreadsheet that takes information from a form I create and it copies the values within the form cells over to a spreadsheet that only needs the current values.
This is what I am doing
Sheets("Pricing Calculator").Select
Range("A2:D2").Select
ActiveCell.FormulaR1C1 = "michelle"
Sheets("worksheet 2").Select
Range("A2").Select
ActiveCell.FormulaR1C1 = "michelle"
the problem is that when i run this macro from pricing calculator to worksheet 2 it always populates the name michelle. I obviously know this is wrong but how do i get the current value only to be copied from one cell in pricing calculator to be pasted in worksheet two active cell? If I copy the cell entirely it pastes over with cell properties (ex color and size), which I dont want. My calculator is going to be updated and changed constantly but the new information that is added there needs to be saved in a master spreadsheet (wksht 2) not repopulating the old information.
example:
Sheets("worksheet 2").Select
Rows("3:3").Select
Selection.Insert Shift:=xlDown
Sheets("Pricing Calculator").Select
Range("A2:D2").Select
ActiveCell.FormulaR1C1 = "michelle"
Sheets("worksheet 2 ").Select
Range("A2").Select
ActiveCell.FormulaR1C1 = "michelle"
Sheets("Pricing Calculator").Select
Range("H3").Select
ActiveCell.FormulaR1C1 = "464604646"
Sheets("worksheet 2 ").Select
Range("B2").Select
id appreciate any help i can get.