Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Tx for the correction Tom, I forgot that the InputBox does not just leave the
range as nothing when not used. -- Charles Chickering "A good example is twice the value of good advice." "Tom Ogilvy" wrote: Just a heads up: If the user doesn't select anything, the results is an error unless you have error handling someplace you haven't shown. when I ran your posted code, I got an error 424 object required. -- Regards, Tom Ogilvy "Charles Chickering" wrote: Try using application.InputBox specify the type as "8" this tells excel that you're expecting a range. Dim UR As Range 'UserRange Set UR = Application.InputBox(Prompt:="Please Select Header Range", _ Title:="Some Title", Type:=8) If UR Is Nothing Then 'User didn't select do something MsgBox "You didn't select anything" End If application.InputBox("Select Range","Hey Stupid",,,,,,8).Address -- Charles Chickering "A good example is twice the value of good advice." "jasminesy" wrote: I'm writing a macro to create a formatted page that will print to my specifications...the only part I can't figure out is: When I ask the user if they need rows to repeat at top, how can they select them manually and my macro still read it so that it can adjust the page setup automatically? Appreciate any help. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
page setup won't allow entering "rows to repeat at top" | Excel Discussion (Misc queries) | |||
"Rows to repeat at Bottom" | Excel Worksheet Functions | |||
Help, Office 2007 "Rows to Repeat at Top" | Excel Worksheet Functions | |||
Help !!! Office 2007 "Rows to Repeat at top" how ???? | Excel Discussion (Misc queries) | |||
"Rows to repeat at top" option under page setup | Excel Worksheet Functions |