+ Reply to Thread
Results 1 to 2 of 2

VBA Macro Loop only copies one cell of data instead of many

  1. #1
    Registered User
    Join Date
    02-22-2016
    Location
    Saint Louis, Missouri
    MS-Off Ver
    2016
    Posts
    15

    VBA Macro Loop only copies one cell of data instead of many

    I'm a VBA novice here, and I'm being tasked with developing some macros in my new job. Currently, I am working on a macro that goes though a text file, applies some formatting, isolates required numerical data, copies it, and then outputs the copied information into a new Worksheet.

    Here's the code for the formatting, just to make sure I post it:

    Please Login or Register  to view this content.
    At this point, I now have column B with an amount of 12 digit numbers that varies from file to file. This next part of the macro is a loop that should now look at this Column B, and begin to inspect the cells of Column B to see if they contain 12 digit numbers, and if they do, begin to copy them as a range. Once all the 12 digit numbers in B are found, it should copy them all, open a new tab, and paste the results:
    Please Login or Register  to view this content.
    For whatever reason, when I go through the macro, all it does is capture the first value in B1 and then put that into the Results sheet. I cannot for the life of me figure out why. Could it be due to the filtering I've applied? If anyone could give me some insight, I'd be all ears. Thanks very much for any help you can offer.

  2. #2
    Registered User
    Join Date
    02-22-2016
    Location
    Saint Louis, Missouri
    MS-Off Ver
    2016
    Posts
    15

    Re: VBA Macro Loop only copies one cell of data instead of many

    whoops! looks like this is in the wrong section. ill close this and remake.

+ 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] Loop copies unique data to a new sheet.
    By Petter120 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-03-2014, 03:55 AM
  2. Macro assigned to button in Cell A3 copies data in range B3:Z3 to another sheet...
    By tche misere in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-02-2014, 10:33 AM
  3. [SOLVED] Wirte macro that copies data from 1 cell to a different cell based on data in a third cell
    By Geoff Jones in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 12-11-2013, 12:37 PM
  4. Replies: 6
    Last Post: 11-18-2013, 11:28 PM
  5. macro that copies data in cell and paste it to cell x columns to right in shhet
    By Stevebarnes in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-27-2013, 12:14 PM
  6. Need Help Creating a Macro That Finds New Data and Copies it to Another Cell
    By fly91 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-16-2013, 09:14 PM
  7. Macro that copies and pastes value from one cell, if another cell contains data
    By defensorfedei in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-02-2012, 11:54 PM

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.6.0 RC 1