Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Kevin M
 
Posts: n/a
Default Variable VB to assign new sheet name

Hi all, TIA..

I have this recorded:

Sub Macro6()
'
' Macro6 Macro
' Macro recorded 6/16/2005 by Chuck Marple
'
' Keyboard Shortcut: Ctrl+Shift+Z
'
Selection.Copy
ChDir "R:\Equipment Info\Spec Sheet Templates"
Workbooks.Open Filename:= _
"R:\Equipment Info\Spec Sheet Templates\A30-1670 (S.V.D.
Template).xls"
ActiveSheet.Paste
Application.CutCopyMode = False
ChDir _
"L:\#PRL EQUIPMENT SYSTEM\EQUIPMENT INFO\A30-TUBULARS\A30-1670
(Rotary Valve-safety-drilling)\2838"
ActiveWorkbook.SaveAs Filename:= _
"L:\#PRL EQUIPMENT SYSTEM\EQUIPMENT INFO\A30-TUBULARS\A30-1670
(Rotary Valve-safety-drilling)\2838\2838.xls" _
, FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
End Sub

I'd like to assign a sheetname based on a variable (cell A6) to assign as
the save name instead of the name it's saving over, any insights would be
much appreciated.

Thanks,

Kevin M
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I assign a range starting cell based on a variable locati. feman007 Excel Worksheet Functions 3 March 9th 05 11:40 PM
Can I use a variable to call up another sheet in Excel? GD Cooley Excel Worksheet Functions 1 February 13th 05 05:40 AM
Can I use a variable to call up another sheet in Excel? GD Cooley Excel Worksheet Functions 0 February 11th 05 02:47 PM
Variable validation-password protect sheet Marty Excel Worksheet Functions 0 January 26th 05 02:27 PM
Naming & renaming a sheet tab Cgbilliar Excel Worksheet Functions 1 November 7th 04 05:57 PM


All times are GMT +1. The time now is 10:25 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"