Excel 97 Macro Question

boydr

Board Regular
Joined
Apr 17, 2002
Messages
157
I'm trying to run the following (which works in Excel 2000 assuming I have an existing sheet called "Cost Sheet") but it won't in Excel 97. Can anyone tell me how to do it in 97?

Sub BKHLCOST2()
Dim CurrSheet As String
Dim NewSheet As String
Dim I As Integer

CurrSheet = ActiveSheet.Name 'Gets name of current worksheet

'Sheets.Add 'Not used right now
Sheets("Cost Sheet").Select
Sheets("Cost Sheet").Copy After:=Sheets(2)
ActiveSheet.Name = Sheets(CurrSheet).Range("A8").Value
NewSheet = ActiveSheet.Name
' DC
Sheets(CurrSheet).Range("A8").Copy
Sheets(NewSheet).Range("H3").PasteSpecial Paste:=xlValues
'Vendor Name
Sheets(CurrSheet).Range("D2:F2").Copy Destination:=Sheets(NewSheet).Range("C1:E1")

End Sub
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Hi. What is your OS? Win2K?
 
Upvote 0
I'm running it on NT 4.0 Workstation (not by choice). So it's Office97 on NT 4.0.
 
Upvote 0
Hi. Sorry, I don't know why...
Maybe, someone helps you.
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,701
Members
448,980
Latest member
CarlosWin

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