+ Reply to Thread
Results 1 to 2 of 2

Target and Concatenate

  1. #1
    Registered User
    Join Date
    01-25-2013
    Location
    Brazil
    MS-Off Ver
    Excel 2003
    Posts
    1

    Target and Concatenate

    Dear all,

    I having two problems in my vba code, first:
    I want to a cell assumes the formula (concatenate)
    Worksheets(New_Calc).[A1].Formula = "=CONCATENATE(" & Target.Offset(0, -1) & "," & ") " & "," & Target & ")"

    Second:
    I having problems with my code when I change values of 2 or more cells at same time, the line of the problem is:
    If Application.Intersect(Target, Planilhas) Is Nothing Or Target.Value() = Empty Then

    Could some one help?

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Target and Concatenate

    Hi, Perriraz,

    you should either show all the code you use or even better attach a sample workbook - I canīt figure out why you use VBA code and a formula instead of writing the values to the A1 and if you use the SelectionChange or Change-Event (on one or more worksheets).

    For the second problem maybe use
    Please Login or Register  to view this content.
    and narrow the range down by Intersect to the range to be monitored.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

+ Reply to Thread

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