Trying to insert a simple VBA sub in to Excel...Stumped

L

Legacy 321674

Guest
Please forgive the rudimentary nature of the question, I have not written in VBS/VBA in a long time and I have never used it with Excel. I find myself in need of a loop to help me write a configuration for a Cisco router. I see to be a simple enough endeavor, but whenever I run the macro in Excel I receive the following erorr: "Run-time Error '424': Object Required". Nothing in the sub becomes highlighted when the error procs, so I am unsure of where to begin to troubleshoot this...Any assistance would be greatly appreciated. Below is the sub.

Sub Looper()
Dim Count As Integer
Dim Total As Integer
Dim Product As Integer

Count = 1
Total = Cell.Item(1, "F")

Do Until Count = Total
answer = Count * 5
Cells(Count, "H").Value = answer

Count = Count + 1
Loop

End Sub

I am attempting to run in in a workbook (on my MAC) with three sheets. The sheet entitled "Reference" is the sheet that I opened the VBA editor on when I wrote the code. I am unsure if I am even trying to run this correctly.
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Forum statistics

Threads
1,215,480
Messages
6,125,047
Members
449,206
Latest member
Healthydogs

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