+ Reply to Thread
Results 1 to 4 of 4

Copy text to multiple cells

  1. #1
    Registered User
    Join Date
    06-05-2015
    Location
    Manchester, UK
    MS-Off Ver
    2016
    Posts
    94

    Copy text to multiple cells

    I have a reasonably simple problem that I'm trying to solve.

    I essentially need some code that will copy the contents of one cell to the range cells I have selected at the time. So for example if I have 'Text' in cell A1, and I have the range A2:B3 selected I want these cells to be populated with the data in A1 when I run the macro. A1 will be controlled by a drop down and therefore will change dependent on what is selected.

    Thanks in advance.

  2. #2
    Registered User
    Join Date
    08-05-2015
    Location
    Finland
    MS-Off Ver
    Home and Business 2013
    Posts
    50

    Re: Copy text to multiple cells

    Try this:



    Sub Copy_A1()

    Dim Rng As Range, cell As Range

    Set Rng = Application.InputBox(Prompt:="Please Select Range", Title:="Range Select", Type:=8)
    Application.ScreenUpdating = False
    For Each cell In Rng
    cell.Value = Cells(1, 1).Value
    Next cell


    Application.ScreenUpdating = True
    End Sub

  3. #3
    Registered User
    Join Date
    04-22-2013
    Location
    Philippines & Australia
    MS-Off Ver
    Excel 2016, Office 365
    Posts
    73

    Re: Copy text to multiple cells

    Just select the range and run this macro, it will work with continuous and non-continuous selections


    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    06-05-2015
    Location
    Manchester, UK
    MS-Off Ver
    2016
    Posts
    94

    Re: Copy text to multiple cells

    Thanks Catman50, did exactly what I needed!

+ 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. Replies: 7
    Last Post: 03-28-2021, 05:09 AM
  2. Copy text from one cell to multiple other cells
    By Lt. Broccoli in forum Excel General
    Replies: 3
    Last Post: 02-04-2014, 11:00 AM
  3. copy multiple row from one sheet to another depended on one cells text.
    By bramer in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-30-2013, 12:06 PM
  4. Replies: 3
    Last Post: 12-12-2012, 04:01 PM
  5. [SOLVED] Copy text from multiple cells and combine to one cell
    By villman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-13-2012, 12:01 AM
  6. Copy Text From Multiple Cells
    By los7 in forum Excel General
    Replies: 1
    Last Post: 07-23-2009, 10:54 AM
  7. Replies: 0
    Last Post: 07-10-2006, 04:34 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