Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default save\change sheet name

Hello,

We get emulation report on excel from oracle softwere

and we link it to access database.

we save (with excel macro ) the report to name that access "know",

but it is not enough, because the sheet of the excei file change it's name

with every report and access dont recognize those names.

(it recogize the name 'sheet 1' ).

How do i save the excel sheet name ( with macro code )

to the name 'sheet 1' witout having known the sheet name ?
(original from emulation)

Thank you




--
תודה רבה
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 586
Default save\change sheet name

You can try this. If the sheet always the first sheet in the workbook, if so
you can use this to see the Sheet Name:

Sub WksName()

MsgBox Worksheets(1).Name

End Sub

or if you want to know the name of every worksheet in the workbook you can
you this:

Sub WksName()

Dim i As Long

For i = 1 To Worksheets.Count
MsgBox Worksheets(i).Name
Next i

End Sub


Hope this helps!
--
Cheers,
Ryan


"יריב החביב" wrote:

Hello,

We get emulation report on excel from oracle softwere

and we link it to access database.

we save (with excel macro ) the report to name that access "know",

but it is not enough, because the sheet of the excei file change it's name

with every report and access dont recognize those names.

(it recogize the name 'sheet 1' ).

How do i save the excel sheet name ( with macro code )

to the name 'sheet 1' witout having known the sheet name ?
(original from emulation)

Thank you




--
תודה רבה

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 586
Default save\change sheet name

I read what you wanted again and maybe this is what you wanted

Sub WksName()

'this will change the first sheets name to "Sheet1"
Worksheets(1).Name = "Sheet1"

End Sub

Hope this helps! If so, please click "Yes" this was helpful.
--
Cheers,
Ryan


"יריב החביב" wrote:

Hello,

We get emulation report on excel from oracle softwere

and we link it to access database.

we save (with excel macro ) the report to name that access "know",

but it is not enough, because the sheet of the excei file change it's name

with every report and access dont recognize those names.

(it recogize the name 'sheet 1' ).

How do i save the excel sheet name ( with macro code )

to the name 'sheet 1' witout having known the sheet name ?
(original from emulation)

Thank you




--
תודה רבה

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default save\change sheet name

excellent,

that wkat i need

thank you



--
תודה רבה


"RyanH" wrote:

I read what you wanted again and maybe this is what you wanted

Sub WksName()

'this will change the first sheets name to "Sheet1"
Worksheets(1).Name = "Sheet1"

End Sub

Hope this helps! If so, please click "Yes" this was helpful.
--
Cheers,
Ryan


"יריב החביב" wrote:

Hello,

We get emulation report on excel from oracle softwere

and we link it to access database.

we save (with excel macro ) the report to name that access "know",

but it is not enough, because the sheet of the excei file change it's name

with every report and access dont recognize those names.

(it recogize the name 'sheet 1' ).

How do i save the excel sheet name ( with macro code )

to the name 'sheet 1' witout having known the sheet name ?
(original from emulation)

Thank you




--
תודה רבה

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
Prevent color change open/save sheet? Julie Moorehouse Excel Discussion (Misc queries) 0 July 29th 09 03:35 PM
Save, save as, page setup dimmed out in unprotected excel sheet? ccKeithJ Excel Discussion (Misc queries) 3 December 14th 07 07:07 PM
Save File to Another Directory, but not change Users File Save location Mike Knight Excel Programming 1 May 28th 04 09:06 PM
is it possible to change this macro to save each sheet seperately? Martyn Excel Programming 4 May 15th 04 07:04 PM
Why system asks me to save change even after I call save method(VB.NET) steellock Excel Programming 2 April 27th 04 04:14 AM


All times are GMT +1. The time now is 05:58 AM.

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"