deanl33069

Board Regular
Joined
May 2, 2019
Messages
120
i have this code to open in full screen
Private Sub Workbook_Open()
Application.DisplayFullScreen = True
Application.CommandBars("Full Screen").Visible = False




End Sub
I also want it to open to cell C2
help plz
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
if i want c2 to be cleared at exit is this a command ?
You would use something like this:
Code:
Range("C2").ClearContents
Inside the Workbook_Close event, though you will need to add a save statement after the lin above to save the file after you have removed the contents.
Or, just put the line above in the Workbook_Open event, so it runs when the workbook opens, rather than when it closes.
 
Upvote 0
You are welcome.
Glad we were able to help.
 
Upvote 0
Again ty, here is another i need help with.

ActiveSheet.ExportAsFixedFormat _
Type:=xlTypePDF, _
filename:="C:\release\testpage2.pdf", _
OpenAfterPublish:=False, _
IncludeDocProperties:=True, _
IgnorePrintAreas:=False, _
Quality:=xlQualityStandard, _
From:=1, To:=2
End Sub
instead of testpage 2 i would like it to save as "c2".pdf
 
Upvote 0
Try changing this part:
Code:
[COLOR=#333333]filename:="C:\release\testpage2.pdf", _
to this":
[/COLOR]
Code:
[COLOR=#333333]filename:="C:\release\" & Range("C2") & ".pdf", _
Note, with new questions that are not related (distinctly different) from your previous question, it is best to post them in a new thread, instead of posting them to an existing thread.
That way, they appear as new, unanswered questions in the "Zero Reply Posts" listing that many people use to look for new unanswered questions.[/COLOR]
 
Upvote 0

Forum statistics

Threads
1,214,919
Messages
6,122,260
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top