<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic power query-VBA code problem in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/power-query-VBA-code-problem/m-p/2687207#M80766</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;I have a very special problem. I created a macro in Excel that works. The latter is used to know the date of entry of information and that the cell is fixed. I wanted to put on macro on Excel but in a Teams group. Unfortunately, this macro does not work because it is not VBA language but DAX on Teams! Therefore, I would like to know if someone can make a macro in DAX allowing to have the date and time of entry of the information&lt;/P&gt;&lt;P&gt;This is the macro:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Private Sub Worksheet_Change(ByVal Target As Range)&lt;/P&gt;&lt;P&gt;Dim j, iSct As Range&lt;BR /&gt;&lt;BR /&gt;Set iSct = Intersect(Target, Range("A:A"))&lt;BR /&gt;If iSct Is Nothing Then Exit Sub&lt;BR /&gt;Application.EnableEvents = False&lt;BR /&gt;For Each j In iSct.Cells&lt;BR /&gt;If IsEmpty(j) Then&lt;BR /&gt;j.Offset(0, 3) = ""&lt;BR /&gt;Else&lt;BR /&gt;j.Offset(0, 3) = Format(Now, "mm/dd/yy hh:mm:ss")&lt;BR /&gt;End If&lt;BR /&gt;Next&lt;BR /&gt;Application.EnableEvents = True&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;As you can see I would like the date and time entered in column A to appear in column C.&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
    <pubDate>Mon, 08 Aug 2022 11:47:00 GMT</pubDate>
    <dc:creator>Elie_HUCHET</dc:creator>
    <dc:date>2022-08-08T11:47:00Z</dc:date>
    <item>
      <title>power query-VBA code problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/power-query-VBA-code-problem/m-p/2687207#M80766</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I have a very special problem. I created a macro in Excel that works. The latter is used to know the date of entry of information and that the cell is fixed. I wanted to put on macro on Excel but in a Teams group. Unfortunately, this macro does not work because it is not VBA language but DAX on Teams! Therefore, I would like to know if someone can make a macro in DAX allowing to have the date and time of entry of the information&lt;/P&gt;&lt;P&gt;This is the macro:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Private Sub Worksheet_Change(ByVal Target As Range)&lt;/P&gt;&lt;P&gt;Dim j, iSct As Range&lt;BR /&gt;&lt;BR /&gt;Set iSct = Intersect(Target, Range("A:A"))&lt;BR /&gt;If iSct Is Nothing Then Exit Sub&lt;BR /&gt;Application.EnableEvents = False&lt;BR /&gt;For Each j In iSct.Cells&lt;BR /&gt;If IsEmpty(j) Then&lt;BR /&gt;j.Offset(0, 3) = ""&lt;BR /&gt;Else&lt;BR /&gt;j.Offset(0, 3) = Format(Now, "mm/dd/yy hh:mm:ss")&lt;BR /&gt;End If&lt;BR /&gt;Next&lt;BR /&gt;Application.EnableEvents = True&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;As you can see I would like the date and time entered in column A to appear in column C.&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 11:47:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/power-query-VBA-code-problem/m-p/2687207#M80766</guid>
      <dc:creator>Elie_HUCHET</dc:creator>
      <dc:date>2022-08-08T11:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: power query-VBA code problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/power-query-VBA-code-problem/m-p/2687409#M80782</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="395728" data-lia-user-login="Elie_HUCHET" class="lia-mention lia-mention-user"&gt;Elie_HUCHET&lt;/a&gt; , we can not create macro in DAX, we can create new column in Power Query or DAX as per need&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;example&lt;/P&gt;
&lt;P&gt;New column = Format(Now() , "mm/dd/yy hh:mm:ss")&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 13:03:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/power-query-VBA-code-problem/m-p/2687409#M80782</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-08-08T13:03:24Z</dc:date>
    </item>
  </channel>
</rss>

