Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all -
The code sample below now works, but from everything I've read I should not use Worksheets("Data").Activate I've tried using =========================================== With wbBook Set wsData = .Worksheets("Data") Set wsFormulas = .Worksheets("Formulas") Set wsMealPlan = .Worksheets("MealPlan") Set wsComp = .Worksheets("COMP") End With With wsData Set Rng = .Range("A1:L" & Get_Rows) 'Get_Rows is UDF End With ============================================= But sometimes if a different sheet is active The code does not execute on the "Data" sheet. What am I doing wrong? Thanks -goss |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sort function not working correct | Excel Discussion (Misc queries) | |||
The F2 function key is not working properly. How do I correct | Excel Discussion (Misc queries) | |||
Formulas showing as correct but not working | Excel Worksheet Functions | |||
Auto Correct Isn't Working (Excel 2003) | Excel Discussion (Misc queries) | |||
My formulas stopped working even though equations are correct | Excel Discussion (Misc queries) |