+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    08-28-2009
    Location
    Lincoln, UK
    MS-Off Ver
    Excel 2003
    Posts
    2

    Question Looping and importing a macro?

    Hi

    I'm fairly experienced in Access VBA but only really read and altered Excel VBA. I wonder if you can help with some code:

    I have a sheet that will have some correct data (a name) in cell A1. If there is data in column 2, I need a macro that copies/overtype the cell from A1 and continues until it finds column B has no more data. I have an idea of how to do this, but any assitance would be fantastic.

    That would be a great start, however;

    The sheets are already with the customers and have gone out without the macro. Is there anyway I can populate a return of sheets automatically with a macro? The only way I have thought is to copy the sheets in to a workbook with the macro in and save as - again, could this be automated?

    It's the second bit that's really stumping me.

    Do you have any suggestions?

    Kind regards

    Antony

  2. #2
    Forums Administrator royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    24,445

    Re: Looping and importing a macro?

    You could write a macro to import the exiting sheets into the macro workbook. I'm not exactly clear on what you mean with the other request, example workbooks would help
    Hope that helps.

    RoyUK
    --------
    If you are pleased with a member's answer then use the Star icon to rate it, if you are pleased enough to part with cash consider a donation to Children in Need

    For Excel consulting, free examples and tutorials visit Excel Consulting-Excel VBA
    Check out the free Excel Toolbar

    New members please read & follow the Forum Rules

    Remember to mark your questions Solved and rate the answer(s)


    Code Tags: Make your code easier for us to read

  3. #3
    Registered User
    Join Date
    08-28-2009
    Location
    Lincoln, UK
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Looping and importing a macro?

    Thanks for the help.

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.2.0