+ Reply to Thread
Results 1 to 4 of 4

Word count and paste

  1. #1
    Registered User
    Join Date
    09-15-2008
    Location
    Pennsylvania
    Posts
    9

    Word count and paste

    Hi,

    I have some trouble creating a macro. I'm new with VBA and I want a macro that does something specific.

    I have 2 workbooks (WB1 & WB2). WB1 will be the one that will record all the information that I need, while WB2 is the one in which I'll be looking for specific information.

    In WB2 I have 4 worksheets. I need to find out how many times the word written in cell A3 is repeated in column A. After doing the count I need to write that word 28 times for each time it was found in column B, starting in cell B2. That is, if the word count was 1, then I should have 28 copies of the word from B2 to B29. If the word count was 2, then I should have 56 copies of the word from B2 to B57, and so on.

    I really don't know how to do this and I wanted some help.

    Thanks in advance.

  2. #2
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127
    With some tweaking, this code should work. We would need more details, specifically the name of each workbook. If you can't adapt it, post back and we can help you through.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    09-15-2008
    Location
    Pennsylvania
    Posts
    9
    Thanks for the code. The only problem that I have is that I have multiple files in a folder. Those files have a password for protection. I've already done that part of the code. The thing that should follow now is what I asked for.

    Here's what I've done so far:

    Thank you!

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Last edited by VBA Noob; 09-15-2008 at 12:50 PM.

  4. #4
    Registered User
    Join Date
    09-15-2008
    Location
    Pennsylvania
    Posts
    9
    I forgot! The word found in WB2 must be copied to WB1 Sheet 2 Column B2 to B29, and so on.

+ 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. Paste Colored Cell Value in Range
    By rkeane7 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-04-2008, 06:24 AM
  2. count row and paste...
    By annir in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-07-2008, 09:05 PM
  3. Worksheet count and reference issue
    By danny2000 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-01-2007, 10:45 PM
  4. summarized data as cut & paste
    By Lisa2 in forum Excel General
    Replies: 2
    Last Post: 08-08-2007, 12:25 PM
  5. paste as a running tallie plz help
    By Jlong1980 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-04-2006, 05:46 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