Results 1 to 3 of 3

Copy active cells from one column as a sequence in another cell

Threaded View

adihad Copy active cells from one... 05-17-2013, 08:56 AM
adihad Re: Copy active cells from... 05-20-2013, 09:53 AM
arlu1201 Re: Copy active cells from... 05-21-2013, 03:59 AM
  1. #1
    Registered User
    Join Date
    05-15-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    2

    Copy active cells from one column as a sequence in another cell

    Hello,

    I am totaly new to VBA and guess I need to write a code for the problem.
    I have two columns, say A and B. I need to copy value (text) from A only if B is active. The copy from all "active" cells in A shall be pasted in another cell on the same Sheet as a sequence, with ";" or "," between values.

    So I was thinking something like this

    Do While ActiveSheet.Cells(rw, x).Value <> ""
            rw = rw + 1
            if ActiveSheet.Cells(rw, x).Value <> ""
        # "Active Cell" Select A 
        Range("Active Cell").Select
        Selection.Copy
        Range("CellX").Select
    etc...

    I hope some of you understand what you mean.

    Many Thanks!
    Last edited by arlu1201; 05-21-2013 at 03:59 AM.

Thread Information

Users Browsing this Thread

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

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