Calculations after Data Import

Status
Not open for further replies.

beantownmt

New Member
Joined
Aug 29, 2011
Messages
11
Hi All
I have a sheet that is set up for Manual Data entry with a trigger point as well as a Macro to import data large series of Data.
The formulas I'm using.
Import Data Macro
Application.EnableEvents = False
r = rngCell.Row
'u = Sheets("JeffsTransp").Range("B" & Rows.Count).End(xlUp).Row + 1
Sheets("JeffsTransp").Rows(u & ":" & u).Insert Shift:=xlDown
Sheets("JeffsTransp").Range("B" & u) = Sheets("Sheet1").Range("C" & r)
Sheets("JeffsTransp").Range("C" & u) = Sheets("Sheet1").Range("D" & r)
Sheets("JeffsTransp").Range("D" & u) = Sheets("Sheet1").Range("B" & r)
Sheets("JeffsTransp").Range("F" & u) = Sheets("Sheet1").Range("L" & r)
Sheets("JeffsTransp").Range("G" & u) = Sheets("Sheet1").Range("E" & r)
Sheets("JeffsTransp").Range("H" & u) = Sheets("Sheet1").Range("F" & r)
Sheets("JeffsTransp").Range("I" & u) = Sheets("Sheet1").Range("G" & r)
Sheets("JeffsTransp").Range("K" & u) = Sheets("Sheet1").Range("H" & r)
Sheets("JeffsTransp").Range("L" & u) = Sheets("Sheet1").Range("I" & r)
Sheets("JeffsTransp").Range("M" & u) = Sheets("Sheet1").Range("J" & r)
Sheets("JeffsTransp").Range("N" & u) = Sheets("Sheet1").Range("O" & r)
Sheets("JeffsTransp").Range("T" & u) = Sheets("Sheet1").Range("M" & r)
Application.EnableEvents = True
Calculation Formula that hits the Trigger Point Only problem is I cant get it to work with Above Formula, This will only calculate the first row (15)
Private Sub DoThings()
With Range("S15")
'.Formula = Range("E6") + Range("E7")
'.Formula = Range("A4") + Range ("A15)
.Formula = Range("L16") * Range("N16")
.Formula = Range("L16") + Range("O16")
.Formula = Range("L16") + Range("M16") * Range("R16")
.Formula = Range("S16") * Range("T16")
.Formula = Range("Q16") - Range("S16") - Range("U16") + Range("P16")
End With
End Sub
Is there a better way to accomplish the Cell calcualtions after the import is done.?
Any help will be greatly appreciated.
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Status
Not open for further replies.

Forum statistics

Threads
1,224,585
Messages
6,179,702
Members
452,938
Latest member
babeneker

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top