473,320 Members | 1,870 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Error 400

ddtpmyra
333 100+
I have this drop down menu all is fine but when i keep on shifting from different selection I got stuck with error 200

heres the SCENARIO>>>>>>
drop down menu choices are:
all fruits
orange
plum

ERROR HAPPENS WHEN I DO THIS>>>>
after one round of selection
from all fruits
then, oranges,
then plum ,
then back to all fruits again
then select orange I got that error.

QUESTION>>>>>>>>>>>>>>>
Is this about memory that excel can't handle? after one cylce it cant do it again?

is there a way to hide the error and push to the next step?

Expand|Select|Wrap|Line Numbers
  1. Sub Tree()
  2. Application.ScreenUpdating = False
  3.  
  4.  Sheet4.PivotTables("pivot_fruit1").PivotFields("tree"). _
  5.         CurrentPage = Sheet20.Cells(10, 22).Value
  6.  Sheet4.PivotTables(pivot_fruit_others1).PivotFields("tree"). _
  7.         CurrentPage = Sheet20.Cells(10, 22).Value
  8. end sub 
  9.  
Aug 15 '14 #1
1 1851
zmbd
5,501 Expert Mod 4TB
1) You don't mention what version of Excel.
2) Title says Error 400, text Error 200
Please post the EXACT, title (if any), Error number, and Text shown in the error box. This is required information as some errors have parameters that are set at break-point
3) Line 6 of posted code, most likly a typo here, you do not have quotes around the table name; thus, it is being treated as as variable.

It's always better to have the “explicate” set in the VBA options; thus, requiring you to have all of your variables declared. This way you can use the debug/compile to find the simple errors.
Aug 19 '14 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

13
by: deko | last post by:
I use this convention frequently: Exit_Here: Exit Sub HandleErr: Select Case Err.Number Case 3163 Resume Next Case 3376 Resume Next
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
1
by: developer | last post by:
Hi All I have made a .NET project. the files included are borland c++ files that i am migrate to VC++ .NET I am using Microsoft Visual C++ .NET 2003. the compilation goes through properly,...
2
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: ...
2
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
15
by: madhu.ab | last post by:
Hi All, I am getting the following errors when i am including header file winuser.h I dont know whats happening. How will an error occur in winuser.h?? Please help. \microsoft visual...
0
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
5
by: yashu0209 | last post by:
I have an error occurring when i try to compile the program and the error is: D:\Program Files\visual studio 6.0\MSDev98\MyProjects\GLEnabledView\GLNew.cpp(164) : error C2653: 'CGLEnabledView' :...
4
by: mgrichen | last post by:
I am using IIS on Windows 7 Enterprise. The following lines of code are an asp page with vbscript calling a MySQL database. <!--#INCLUDE file="header.asp"--> <html> <% ...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.