LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default Loop not working properly

I am trying to compare an item list to another sheet which contains a
multiplier.
So on sheet 1 ("data") if Item A is on Sheet 2 ("multiplier") then I look at
the multiplier column.
I then take this multiply factor times the quantities on the sheet 1 ("data")

For some reason this is not working and I am not sure why?

Dim MM As Integer
Dim MF As Integer
Dim MFactor As Integer

MM = 2

For Multi = 2 To 871

If Sheets("Data").Cells(Multi, 3) = Sheets("Multiplier").Cells(MM, 1) Then

MFactor = Sheets("Multiplier").Cells(MM, 3)

For MF = 15 To 27
Sheets("Data").Cells(Multi, MF) = Sheets("Data").Cells(Multi,
MF) * MFactor
Next MF

MM = MM + 1
End If

Next Multi
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Loop not working properly Dagonini Excel Programming 0 June 26th 08 02:11 PM
Do Until Loop not functioning properly MB Excel Programming 0 January 30th 07 04:06 PM
Do Until Loop not functioning properly Gord Dibben Excel Programming 0 January 23rd 07 10:30 PM
how to properly loop a macro brawny_javo Excel Programming 5 May 18th 06 06:22 PM
For Each Loop not working properly oakman[_19_] Excel Programming 13 March 26th 06 11:44 PM


All times are GMT +1. The time now is 11:26 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"