Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Have code pulled from group seems my location is wrong or something get error
on pCnt=inputbox yellows this line prior to inserting this worked ok note 2nd ActiveWindow checked out after insert input Correction Thanks With Sheets("Check_In") pCnt = InputBox("How Many Copies") ActiveWindow.SelectedSheets.PrintOut Copies:=pCnt, Collate:=True ' ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True .pagesetup.PrintArea = "A2:D" & Cells(Rows.Count, "B").End(xlUp).Row ActiveSheet.pagesetup .PrintGridlines = True |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
pcnt is a string, put val() around it
ActiveWindow.SelectedSheets.PrintOut Copies:=val(pCnt), Collate:=True Dirk |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
put in the () still same problem
"Dirk Nachbar" wrote: pcnt is a string, put val() around it ActiveWindow.SelectedSheets.PrintOut Copies:=val(pCnt), Collate:=True Dirk |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
My dim statement was wrong
Thanks "Dirk Nachbar" wrote: pcnt is a string, put val() around it ActiveWindow.SelectedSheets.PrintOut Copies:=val(pCnt), Collate:=True Dirk |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro - save to current location vs excel default location | Excel Discussion (Misc queries) | |||
compile/syntax error to save active book to new location on networ | Excel Worksheet Functions | |||
Inputbox Location on Screen. Can you code it to popup lower on the screen ? | Excel Programming | |||
Inputbox to pull cell location | Excel Programming | |||
Inputbox and Application.InputBox | Excel Programming |