![]() |
#1
|
|||
|
|||
![]()
Hi Forum,
New on here so please help if you can. Have the following code to save file using text boxes in the document called tbpanelname and tbpanelnumber and possibly the date. code does not work, this version has compile error. no surprises there as i don't really use vba much. any thoughts of approaches to do this ?? cheers mark Private Sub CommandButton1_Click() Code:
With ActiveDocument .SaveAs2.FileName = "C:\mydocuments" .SelectContentControlsByTitle.SaveAs = ("TBpanelnumber" & "tbpanelname") End With End Sub |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
gsrikanth | Excel Programming | 2 | 03-28-2022 06:32 AM |
![]() |
Hoxton118 | Word VBA | 4 | 04-04-2021 06:02 AM |
Compile error: sub or function not defined.. | xena2305 | Excel Programming | 0 | 08-02-2011 10:17 AM |
compile error in Word | raco | Word | 0 | 09-28-2010 12:40 PM |
Runtime error 5487 - Word cannot complete the save to to file permission error | franferns | Word | 0 | 11-25-2009 05:35 AM |