+ Reply to Thread
Results 1 to 3 of 3

creating a loop in a macro

  1. #1
    Registered User
    Join Date
    07-17-2012
    Location
    ireland
    MS-Off Ver
    Excel 2007
    Posts
    6

    creating a loop in a macro

    Hi I'm new to this

    I have an output file form database which is seperated into 26 differnt tabs relating to different parts of data base.

    From this output file I have created different workbooks analysisng certain sheets from the output file seperataly( there is alot of analysis involed in the sheets)

    changes are being to the data on a weekly bases so i have to copy & paste the data from the output file into the workbbooks were i analysise the data

    I have created a macro
    I have a generic coverhsheet in each of the workbooks were i do the analysis. One of the cells has a drop down menu givng me the option to select which i sheet i want update, The macros reads this cell and looks for this sheetname file in the latest output file (the file name is specified on the coversheet), then copies the updated data into the workbook were the analysis is done
    This the code i have created
    I want put a named range on the cover sheet with sheetnames that are being used from the output file, I want the macro to loop and update data in them specified file names.

    I havent created a loop before and I'm finding it hard to understand how to start



    Please Login or Register  to view this content.
    Thanks
    Last edited by bobfoley91; 03-20-2014 at 08:31 AM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: creating a loop in a macro

    Hi, and welcome to the forum. Unfortunately your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    07-17-2012
    Location
    ireland
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: creating a loop in a macro

    Hi Richard

    Sorry for not complying with the rules, I have edited the text.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Need help creating a loop in a macro!!!!
    By moshro1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-14-2013, 01:46 PM
  2. [SOLVED] Creating a Macro Loop to copy & paste several lines
    By homike2 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-05-2013, 07:10 PM
  3. Creating a Macro / GUI that is continuous and does not loop
    By C Dev in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-26-2012, 04:45 AM
  4. Question on Creating Loop type Macro
    By mavrik5150 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-07-2011, 02:20 PM
  5. Creating a Continuous Loop Macro
    By Hyflex in forum Excel General
    Replies: 4
    Last Post: 09-21-2010, 08:46 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1