VBA anyone?

Log in to stop seeing adverts

Status
Not open for further replies.

Darth Vodka

Well-Known Member
back to VBA...

anyone know how to make the msgbox NOT appear in the middle of the screen?
 

Darth Vodka

Well-Known Member
jeez

cheers macky, i actaully found a work around (i moved the things behind it) my next work around was gonna be to to use a bespoke form, but cheers for that, i may write that into a subprocedure for future use :)

give the man my vcash :)
 

Darth Vodka

Well-Known Member
ok next VBA question

i have a procedure in Access VBA that formats an Excel worksheet object that is being created by another procedure. works fine but am having problems switching the gridlines off (the property is DisplayGridlines, but it's on the Window object)

Code:
Sub FormatWorkSheet(oWorkSheet As Excel.Worksheet) 
With oWorkSheet 
.PageSetup.Orientation = xlLandscape 
End With 
End Sub

i'd expect something like

Code:
oWorkSheet.Parent.DisplayGidlines=false

to work, but no :(

any ideas anyone?
 

Darth Vodka

Well-Known Member
got it!
 
Status
Not open for further replies.
Log in to stop seeing adverts

Championship

P Pld Pts
1Leicester4697
2Ipswich4696
3Leeds Utd4690
4Southampton4687
5West Brom4675
6Norwich City4673
7Hull City4670
8Middlesbro4669
9Coventry City4664
10Preston 4663
11Bristol City4662
12Cardiff City4662
13Millwall4659
14Swansea City4657
15Watford4656
16Sunderland4656
17Stoke City4656
18QPR4656
19Blackburn 4653
20Sheffield W4653
21Plymouth 4651
22Birmingham4650
23Huddersfield4645
24Rotherham Utd4627
Top