Results 1 to 5 of 5

How to use VBA to put spaces in Concat

Threaded View

  1. #1
    Registered User
    Join Date
    06-28-2018
    Location
    Czech Republic
    MS-Off Ver
    365
    Posts
    10

    How to use VBA to put spaces in Concat

    Hey,
    I'm trying to put spaces between each number but can't figure out how to put " " into formula I tried "&"" ""&" but it doesn't work for me.

    While Cells(id + 1, x) <> ""
    a = a & ";" & " " & ";" & Cells(id + 1, x).Formula
    x = x + 1
    Wend
    
    a = Replace(a, ".", ",")
    
    Cells(id + 1, 3).FormulaLocal = "=concat(" & a & ")"
    Last edited by PumSese; 09-17-2020 at 07:50 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Copying a list without spaces to cells with spaces between them.
    By NoviceRenegade in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-19-2019, 01:12 AM
  2. CONCAT vs CONCATENATE
    By ionelz in forum Excel General
    Replies: 6
    Last Post: 03-01-2019, 05:25 AM
  3. Replies: 9
    Last Post: 12-31-2018, 01:29 PM
  4. Formula To Create a List Without Spaces From Data With Spaces
    By nicklasnicklas in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-11-2017, 01:58 AM
  5. Concat help
    By fluters1243 in forum Excel General
    Replies: 10
    Last Post: 06-30-2017, 11:14 AM
  6. [SOLVED] Replacing double spaces with single spaces
    By EdWoods in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 04-15-2013, 01:20 AM
  7. [SOLVED] Concat help
    By anuraag205 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-02-2013, 02:13 AM

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