Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 41
Default I know this is simple but ans= and nothing happens

I know this is something really simple that I am simply missing but I
have the brain cramps. Sorry.

Select Case ans
Case "7", "6", "5", "4", "3", "2"
ans = (O40)
Case 1
Sheets("DISTRICT ROLL-UP").Select
Range("O40").Select
ActiveCell.FormulaR1C1 = "7"
Sheets("DISTRICT ROLL-UP").Select
Range("B31:I34").Select
Selection.Copy
Sheets("DAILY").Select
Range("C137").Select
Selection.PasteSpecial Paste:=xlPasteValues,
Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End Select

Cell O40 is 7 and nothing is happening. The data in cells B31;I34 is
not copying and pasting.

What am I missing?

Don
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 461
Default I know this is simple but ans= and nothing happens

I would guess that you are putting quotes around numbers which are making
them text values.

Try using Case 7, 6, 5, 4, 3, 2 without the quotes

" wrote:

I know this is something really simple that I am simply missing but I
have the brain cramps. Sorry.

Select Case ans
Case "7", "6", "5", "4", "3", "2"
ans = (O40)
Case 1
Sheets("DISTRICT ROLL-UP").Select
Range("O40").Select
ActiveCell.FormulaR1C1 = "7"
Sheets("DISTRICT ROLL-UP").Select
Range("B31:I34").Select
Selection.Copy
Sheets("DAILY").Select
Range("C137").Select
Selection.PasteSpecial Paste:=xlPasteValues,
Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End Select

Cell O40 is 7 and nothing is happening. The data in cells B31;I34 is
not copying and pasting.

What am I missing?

Don

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
IF formula-simple question; simple operator Rich D Excel Discussion (Misc queries) 4 December 6th 07 03:36 PM
Simple problem, simple formula, no FUNCTION ! Ron@Buy Excel Worksheet Functions 6 September 28th 07 04:51 PM
Simple lookup - or maybe not so simple - help! ChrisHodds Excel Worksheet Functions 1 September 27th 06 03:09 PM
Simple Simple Excel usage question BookerW Excel Discussion (Misc queries) 1 June 23rd 05 10:06 PM
Make it more simple or intuitive to do simple things Vernie Charts and Charting in Excel 1 March 16th 05 04:01 AM


All times are GMT +1. The time now is 01:52 AM.

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

About Us

"It's about Microsoft Excel"