LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #10   Report Post  
Posted to microsoft.public.excel.programming
Ben Ben is offline
external usenet poster
 
Posts: 509
Default Macro Needed Please

Thanks again guys...I did copy into a new book with sheet 1 & 2 and it did
work. That mean all I have to do is change references in the macro to sheet 1
& 2 to the actual sheet names and ranges and it should work again. will let
you know.

Cheers

"JLGWhiz" wrote:

Ben, don't let it scare you away. This is how you learn about programming.
Take the challenge and learn how to debug the code. Probably the worse
thing that can happen is you spend a couple of hours on it.


"Ben" wrote in message
...
Thanks for your help guys but I think this is bigger than I can handle
with
my knowledge.

"JLGWhiz" wrote:

I don't know why you would get a VBA error 400, which is telling you that
you are trying to open a form that is already open. There is nothing in
the
code that Joel provided that calls a form to Load or Show. If you click
the
Debug button when the error message appears, which line of code is
highlighted?


"Ben" wrote in message
...
The only thing I forgot to say was that the sheet with all the data is
call
"Voucher Records". Would that make a difference?

"JLGWhiz" wrote:

This is the message for a Err 400:

You can't use the Show method to display a visible form as modal. This
error
has the following cause and solution:

a.. You tried to use Show, with the style argument set to 1 -
vbModal,
on
an already visible form.
Use either the Unload statement or the Hide method on the form
before
trying to show it as a modal form.

So, since there is no form involved in the code Joel provided, the
question
arises, is there something you forgot to include in your original
post?



"Ben" wrote in message
...
Hi Joel

The macro does not work. I get a 400 error











 
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
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort Gavin Excel Worksheet Functions 0 May 17th 07 01:20 PM
macro needed Arain Excel Discussion (Misc queries) 2 September 15th 06 04:47 AM
Macro needed to set macro security in Excel to minimum Carl Excel Programming 3 March 18th 06 03:36 PM
Macro needed to Paste Values and prevent Macro operation thunderfoot Excel Discussion (Misc queries) 1 June 11th 05 12:44 AM
Macro needed to Paste Values and prevent Macro operation thunderfoot Excel Discussion (Misc queries) 0 June 10th 05 03:38 PM


All times are GMT +1. The time now is 04:48 PM.

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"