LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
PA PA is offline
external usenet poster
 
Posts: 101
Default Macro Not Working Properly

I have the following macro which I recorded (I am not knowledgeable in VBA).

Sub Print1()

Sheets("Buyer List").Select
Range("A1:G15").Select
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
Range("A1").Select
Sheets("Main").Select

End Sub

From the worksheet named Main, it goes to the Buyer list worksheet, selects
the range A1:G15 and prints. Then goes back to Main.
The problem is that I get a far larger range printed and for the life of me,
I can not figure out why. It actually prints A1:L225
Any guidance will be appreciated.
Thank you.
Paul
 
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 not working properly when run automatically ATChurch Excel Discussion (Misc queries) 9 April 1st 10 03:01 PM
Macro is not working properly Sherees Excel Discussion (Misc queries) 5 December 26th 09 09:18 AM
But not working properly Rao Ratan Singh Excel Discussion (Misc queries) 2 September 14th 06 08:45 AM
Macro not working properly when the file is shared Chakri Excel Worksheet Functions 0 August 30th 06 01:33 PM
Macro "1 tall/1 wide" not working properly gizmo Excel Worksheet Functions 2 January 10th 05 07:18 PM


All times are GMT +1. The time now is 09:25 AM.

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"