#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 410
Default VB case Help

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default VB case Help

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 360
Default VB case Help

Do you want a range or a value?

Cliff Edwards



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,718
Default VB case Help

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
change data of entire column from small case to upper case Ann Excel Worksheet Functions 1 August 16th 08 02:06 PM
How do I change from upper case to proper case in excel 2002 CT Man[_2_] Excel Discussion (Misc queries) 8 January 8th 08 07:14 PM
Changing multiple cell text from lower case to upper case Patti Excel Discussion (Misc queries) 2 January 4th 08 09:35 PM
Change the text from lower case to upper case in an Excel work boo dave01968 Excel Discussion (Misc queries) 2 December 9th 05 10:09 AM
How to use formula auditing to change upper case to Title Case. ScoobeyDoo Excel Worksheet Functions 1 November 19th 04 07:26 PM


All times are GMT +1. The time now is 06:00 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"