Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 11-01-2018, 05:16 AM
Charles Kenyon Charles Kenyon is offline vba for next loop Windows 10 vba for next loop Office 2016
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,584
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Try:

Code:
sub mac1()
     Dim num as integer
    For num = 1 to 50
       A = num * 2
       cells (1,1) = A
      MsgBox "The current values are " & num & " and " & A
  Next num
end sub
Reply With Quote
 

Tags
for next loop, vba



Similar Threads
Thread Thread Starter Forum Replies Last Post
vba for next loop Do Loop bug donlincolnmsof Word VBA 11 09-07-2017 10:07 PM
vba for next loop Macro Loop Help Twizzle008 Word VBA 15 09-18-2015 03:20 PM
vba for next loop Loop - Row increment jrt Excel Programming 1 04-16-2015 01:46 PM
vba for next loop End or alter a loop? DJSOUND Word VBA 1 10-11-2013 08:11 PM
vba for next loop How to a For loop in VBA Jennifer Murphy Word VBA 1 01-29-2013 03:30 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:27 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft