Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-08-2018, 03:55 AM
Josh1012 Josh1012 is offline How to Loop through all open Workbboks Windows 10 How to Loop through all open Workbboks Office 2010 64bit
Novice
How to Loop through all open Workbboks
 
Join Date: Sep 2018
Posts: 12
Josh1012 is on a distinguished road
Default

Hi,

@Pecoflyer, yeah sorry I didn't know I had to wrap the code. I will do that next time.

@No Sparks, thanks for your reply. Yes my code is located in Book.xlsx.



I haven't tried your code yet but I will let you know if it works as soon as I try and run it.

Also, just a quick question. I'm new to VBA and want to know when to use the "With" command.
Reply With Quote
  #2  
Old 09-08-2018, 08:00 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline How to Loop through all open Workbboks Windows 7 64bit How to Loop through all open Workbboks Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,948
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

Quote:
Originally Posted by Josh1012 View Post
Hi,

@Pecoflyer, yeah sorry I didn't know I had to wrap the code. I will do that next time.

Now that you do know, could you please add them in your first post ?
Thanks
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #3  
Old 09-09-2018, 02:11 AM
Josh1012 Josh1012 is offline How to Loop through all open Workbboks Windows 10 How to Loop through all open Workbboks Office 2010 64bit
Novice
How to Loop through all open Workbboks
 
Join Date: Sep 2018
Posts: 12
Josh1012 is on a distinguished road
Default

Hey,



Thanks so much, the code worked brilliantly. Also I hate to ask but how do I edit my original post to include code formatting?


I appreciate your help and the tips.
Reply With Quote
Reply

Tags
copy, for each loop, for loop



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Loop through all open Workbboks Do Loop bug donlincolnmsof Word VBA 11 09-07-2017 10:07 PM
How to Loop through all open Workbboks Macro Loop Help Twizzle008 Word VBA 15 09-18-2015 03:20 PM
What's wrong with my loop? Irrma Word VBA 2 06-17-2014 06:25 AM
How to Loop through all open Workbboks How to a For loop in VBA Jennifer Murphy Word VBA 1 01-29-2013 03:30 AM
How to Loop through all open Workbboks Continuous Loop cksm4 Word 6 01-06-2011 09:03 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:24 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