LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Unable to run macros...

Barb:
Thank you for your reply.
Well, I removed the line: Application.ActivePrinter = "Zebra LP2844ps on
Ne00:"
but still the same problem: No printing and everything frezes...

Furthermore, I really need this line because the Zebra LP2844 is NOT my
default printer. You see this is a simple macro that prints an Address Label
on the Zebra LP2884, then copy the address and past it to another page to
print a letter on my other printer (HP5000).

"Barb Reinhardt" wrote:

I'm guessing you don't need this line at all. Comment it out and see what
happens.

Application.ActivePrinter = "Zebra LP2844ps on Ne00:"

--
HTH,
Barb Reinhardt




"Marco Margaritelli" wrote:

Using Win XP Pro (SP2) + Office 2003

After many years using the same worksheet containing the same macros, these
(ALL) have stopped working.
When I click the button that call the macro, Excel and I have to close it
with CTRL+ALT+DEL.

Thinking that was something wrong with the macro itself, I created a new
sheet with a very simple macro:

Here it is:
============================

Sub Button5_Click()
'
' Button5_Click Macro
' Macro recorded 9/6/2008 by Marco Margaritelli
'
'
Range("A1:B2").Select
Application.ActivePrinter = "Zebra LP2844ps on Ne00:"
ActiveWindow.SelectedSheets.PrintOut Copies:=1, ActivePrinter:= _
"Zebra LP2844ps on Ne00:", Collate:=True
End Sub

================================

This print function worked when I was creating the macro, the I save it, and
clicked the Button just created that call for this macro and even this simple
script freezes everything, BUT if I manualy run this one from the MS Visual
Basic VBA "Run-F5" function it works, BUT NOT if I call it from the button
created to run this macro...
Kind of weird...

A few days ago I re-installed Office 2003 and the problem was solved...
Now it is happening again... I did NOT install any new software... I even
disable McAfee from Script Scanning and its "System Guard", just in case...

Everything else in Office 2003 seems to be working fine, even Excel it is
fine, the problem is ONLY the unability of running macros.
I need them!...
Any suggestions?

THANKS!


 
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
Unable to click on charts & unable to create any new charts Excel Snapclick Charts and Charting in Excel 4 February 1st 09 07:59 PM
Unable to run the macros Mahesh Excel Programming 1 July 26th 07 07:54 PM
other users unable to use macros pywhacket Excel Programming 1 March 17th 06 08:56 AM
unable to run macros Dahlman Excel Discussion (Misc queries) 1 April 20th 05 10:34 PM
weird saving of a document with macros resulting with macros being transfered to the copy alfonso gonzales Excel Programming 0 December 12th 04 09:19 PM


All times are GMT +1. The time now is 10:05 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"