Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-29-2014, 08:09 AM
fumei fumei is offline Save As PDF Macro/VBA with Predetermined File Name Windows 7 64bit Save As PDF Macro/VBA with Predetermined File Name Office XP
Expert
 
Join Date: Jan 2013
Posts: 440
fumei is on a distinguished road
Default

Private Sub CommandButton1_Click()
Sub Demo
.......


..........
.....
End Sub


TWO starts - Sub
ONE termination - End Sub

Therefore "Expected End Sub"

As Cosmo mentions, remove one start (the Sub Demo).
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Save As PDF Macro/VBA with Predetermined File Name Choose file name Save As macro gbaker Excel Programming 28 07-22-2014 03:54 PM
Save As PDF Macro/VBA with Predetermined File Name Save As Macro that changes the file name also rosscortb Word VBA 5 05-19-2014 08:40 AM
save a file with a predetermined date in VBA lingering Word VBA 1 03-23-2014 07:47 PM
Save As PDF Macro/VBA with Predetermined File Name Word Macro: Save file as text with current file name jabberwocky12 Word VBA 2 10-22-2010 12:23 PM
Macro will not save to normal.dot file when exiting bobbraun Word 1 09-28-2010 06:26 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:54 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft