based on cell selection in sheet1 values appear on sheet2 in one sentence

VBABEGINER

Well-known Member
Joined
Jun 15, 2011
Messages
1,232
Sheet 1
column Acolumn Bcolumn Ccolumn Dcolumn E
Task listTask Idsever nameapplication nameaction
openT_1S_1abcreset
closeT_2S_2pqrcancel
holdT_3S_3xyz
T_4mango
T_5chilly

Hello All Board member's,

Hope you all are doing well..!!

I've data like above chart on sheet1. What I'm trying to do is,
suppose if I click on cell -
Task list - open (highlight this selection in green) then
Task Id - T_3 (highlight this selection in green) then
server name - S_2 (highlight this selection in green) then
application name - chilly (highlight this selection in green) and then
action - reset (highlight this selection in green)

and click on "Submit" button.

then on sheet2 starting from row 2, let's say, A2 i should have output like this-
"open T_3 S_2 chilly reset" in single cell

The way I click on cell green color will appear for every cell selection and lastly clicking on submit button will save that selection data in sheet2.
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Hello All,

I just got one code which was given by (he is too my very favorite) Vog Sir.. This is the code..

VBA Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Cancel = True
Target.Interior.ColorIndex = 0
End Sub

Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As Boolean)
Cancel = True
Target.Interior.ColorIndex = 4
End Sub

Now with the help of this code, whenever I'm selecting a cell (with the help of right click) it turns that cell into Green color. If User made wrong selection on the same column there "before double click" event code also available to make that cell colorless.

Now.. can any one pls provide a code on button, that whatever be the green selected rows are to be copied in single cell in sheet2..


Pls reply, let me know if anyone need more explanation.. Thank You..
 
Upvote 0

Forum statistics

Threads
1,214,987
Messages
6,122,614
Members
449,090
Latest member
vivek chauhan

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top