+ Reply to Thread
Results 1 to 3 of 3

Macro to copy column of data and call a sub-procedure

  1. #1
    Forum Contributor
    Join Date
    07-24-2013
    Location
    HongKong
    MS-Off Ver
    Excel 2010
    Posts
    237

    Macro to copy column of data and call a sub-procedure

    ScreenHunter_001.jpg

    I want to write a macro:

    1. The macro starts at Cell A1
    2. Copy C1:C4 to A1:A4
    3. Call and run a sub-procedure (SubPro) which will use the data at A1:A4
    4. Then copy D1:D4 to A1:A4 and run SubPro again until no more data to copy. In this case the data end at G1:G4, but it varies case by case.
    5. The macro stops at A1.

    Thanks

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Macro to copy column of data and call a sub-procedure

    maybe something like this
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    07-24-2013
    Location
    HongKong
    MS-Off Ver
    Excel 2010
    Posts
    237

    Re: Macro to copy column of data and call a sub-procedure

    Yes!

    Thank you nilem

+ 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] Call a Macro in the Active Workbook from a Personal.xlsb procedure [RESOLVED]
    By Seke in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-15-2015, 06:17 AM
  2. [SOLVED] Create a time delay at end of procedure that will then call on next procedure
    By Clay Shooter in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-31-2013, 05:56 AM
  3. Replies: 0
    Last Post: 03-28-2013, 02:41 AM
  4. Run Time Error 5 - Invalid procedure call or agrument with copy folder
    By Ironman in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-17-2012, 12:56 PM
  5. Macro Run Time error - Invalid procedure call or argument
    By clundeen in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-01-2011, 01:59 AM
  6. Macro Error - Invalid Procedure Call or Argument
    By mcordi in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-12-2011, 05:40 PM
  7. [SOLVED] Call Oracle Procedure from Excel macro
    By test in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-06-2005, 10:05 PM

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