Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a small program, and in a particular cell, I ask a
user to enter the number of copies they want printed when they push the button linked to the printpages macro I made. In the macro I want to change the "Copies:=1" so that rather than a 1, it will reference the value of the cell they entered the number of copies desired. I tried ActiveWindow.SelectedSheets.PrintOut Copies:=Cells ([g], [22]), Collate:=True Range("E4").Select But that didnt work. I dont know much about VB or how to use it in conjunction with Excel, but anyone who can help me fix this is greatly appreciated! Ray |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Ray try using:
Range("G22").value or Cells(7,22).value -----Original Message----- I have a small program, and in a particular cell, I ask a user to enter the number of copies they want printed when they push the button linked to the printpages macro I made. In the macro I want to change the "Copies:=1" so that rather than a 1, it will reference the value of the cell they entered the number of copies desired. I tried ActiveWindow.SelectedSheets.PrintOut Copies:=Cells ([g], [22]), Collate:=True Range("E4").Select But that didnt work. I dont know much about VB or how to use it in conjunction with Excel, but anyone who can help me fix this is greatly appreciated! Ray . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Associating Visual Basic Code to a Cell | Excel Discussion (Misc queries) | |||
Visual basic macro move cursor down 1 cell | Excel Worksheet Functions | |||
Adjust Cell Width in Visual Basic | Excel Discussion (Misc queries) | |||
changing the visual basic in office 2003 to visual studio net | Excel Discussion (Misc queries) | |||
visual basic command in a cell?? | Excel Programming |