hy, i need an vba code to do this : on Sheet2(Licente) when i select an row to check for…
- User
hy, i need an vba code to do this : on Sheet2(Licente) when i select an row to check for an mark x inside cells from selected row and if value from c on selected row is DA , colour all cells with an x mark inside from that row and first cell from that row in green , if value from c cell for selected row is NU then colour is red , also count number of cells with an mark x inside and display the number of cells on a1 cell from Sheet2(Licente),also if i delete or put an mark x on all cells from selected row , update automaticaly colour , count and save the file, also search value from first cell onSheet2(Licente) for selected row in Sheet3(System) and if more value are finded on an single colums ,than cumulate that value to 1 and count finded values on Sheet3(System) with only one results for colums , than compare number rezulted from cumulated colums from Sheet3(System) with number from A1 cells from Sheet2(Licente) and if difference is found display msg box "difference was found "
- Assistant
- User
i run debug and step intro and nothing happend
- Assistant
- User
write all code again
- Assistant
- User
nothing happend
- Assistant
- User
ok add MsgBox for debugging or reviewing the logic related to “x” mark counting, cell coloring conditions, and data searching in “Sheet3” step by step.
- Assistant
- User
i need an vba code to do this :on Sheet2(Licente) search on selected row for all cells that have an x marked inside, if x is found display number of cells with an x mark inside on Sheet2(Licente) cell a1, -msg box "numarul este de "-a1 cell value , for c value on selected row =DA colour of cell founded with an x inside and first cell in the selected row in green --rest of cells must be white , if c value=NU colour of cell founded with an x inside and first cell in the selected row in red--rest of cells must be white , , also if an x mark is deleted or aded for selected row on cells or if c cell value is changed automaticaly update number on a1 cells , and colours acording c cell value, kepp the colour of cells after deselect the row
- Assistant
- User
i need an vba code to do this :on Sheet2(Licente) search on selected row for all cells that have an x marked inside, if x is found display number of cells with an x mark inside on Sheet2(Licente) cell a1, -msg box "numarul este de a1 cell value , for c colums value on selected row =DA colour of cell founded with an x inside and first cell in the selected row in green -rest of cells on the selected row must be white , if c columns value on selected row=NU colour of cell founded with an x inside and first cell in the selected row in red–rest of cells must be white , also if an x mark is deleted or aded on selected row or cells c value is changed , automaticaly update number on a1 cells , and colours acording c cell value, keep the colour of cells after deselect the row
- Assistant
- User
on shee2(Licente ) i have 2 values -general or Worksheet , where i put the code?
- Assistant
- User
why " are changing when i paste into vba?
- Assistant
When you're copying and pasting code, especially from web browsers into the VBA (Visual Basic for Applications) editor in Excel, you might encounter an issue where double quotation marks ("") change into different or "smart" quotes (“” or ””). This alteration can cause syntax errors in your VBA code because VBA requires straight quotation marks for string literals and other syntax elements.
- User
i nedd an vba code for this :
- Assistant
It seems like your query got cut off before you could specify what you need the VBA code to do. Could you provide more details on the task or functionality you're looking to implement with VBA in Excel? This will help in crafting a precise and helpful solution for you.
- User
ok , on Sheet2(Licente) when i select an entire row check if are cells value with an x mark inside , count number of cell finded with x inside an count number in cell a1.also if value in c column is ="DA" colour cells with x and first row in cell in green , and if c colum value is ="NU" colour the cells IN RED ,for another value for c colour the cells in blue, after that count number of cell with an x finded on selected row in cell a1 and display the number , keep colour after deselect the row , also if i delete or put an x mark on cells from selected row or value for c is changed update count value and colour.
- Assistant
- User
i put this code on sheet2 (Licente) on vba worksheet event selecion change , i run debug and nothing happend
- Assistant
- User
Private Sub Worksheet_SelectionChange(ByVal Target As Range) ambigous name detected
- Assistant
- User
ok , i have Sheet2(Licente) and i need when i select an entire row to check if on that row are cells marked with an x inside , if there are any cells with x inside if value for C colums is DA then colour of cell with x is green , if is NO then colour is red , also if an x mark is aded or deleted, or c value is changing from DA to NU OR FROM NU to DA automaticaly update cells colour , and display in a1 cell number of cells finded with an x inside on selected row , keep modification after deselenting row.
- Assistant
- User
when i run debug i vba nothing happed
- Assistant