Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have this case and I want the rng to = the Target.value. I had put
in a message box to fire when case 6 happens and it was firing just fine. It just seems to stop there and not fill rng with target.value. Any help would be greatly appreciated. Thanks, Jay Select Case Target.Column Case 6 Dim Rws As Long Rws = Sheet3.Range("A1").End(xlDown).Row + 1 Set rng = Sheet3.Cells(Rws, 1) End Select rng = Target.Value |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Depending on what's in column A...
rws may be the number of rows in the worksheet PLUS 1 So there would be no sheet3.cells(rws, 1) If that doesn't help, you may want to post a little more of the code and describe where the code is located (behind sheet3 maybe???)--and what's in column A of that sheet. jlclyde wrote: I have this case and I want the rng to = the Target.value. I had put in a message box to fire when case 6 happens and it was firing just fine. It just seems to stop there and not fill rng with target.value. Any help would be greatly appreciated. Thanks, Jay Select Case Target.Column Case 6 Dim Rws As Long Rws = Sheet3.Range("A1").End(xlDown).Row + 1 Set rng = Sheet3.Cells(Rws, 1) End Select rng = Target.Value -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Do you want a range or a value?
Cliff Edwards |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Add a breakpoint to the
Rws = Sheet3.Range("A1").End(xlDown).Row + 1 line and start debugging from there (pressing F8 to execute one line of code at a time). I imagine the last line you posted is being skipped. -- Jim "jlclyde" wrote in message ... I have this case and I want the rng to = the Target.value. I had put in a message box to fire when case 6 happens and it was firing just fine. It just seems to stop there and not fill rng with target.value. Any help would be greatly appreciated. Thanks, Jay Select Case Target.Column Case 6 Dim Rws As Long Rws = Sheet3.Range("A1").End(xlDown).Row + 1 Set rng = Sheet3.Cells(Rws, 1) End Select rng = Target.Value |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
change data of entire column from small case to upper case | Excel Worksheet Functions | |||
How do I change from upper case to proper case in excel 2002 | Excel Discussion (Misc queries) | |||
Changing multiple cell text from lower case to upper case | Excel Discussion (Misc queries) | |||
Change the text from lower case to upper case in an Excel work boo | Excel Discussion (Misc queries) | |||
How to use formula auditing to change upper case to Title Case. | Excel Worksheet Functions |