Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default using array to copy formats as well...

HI!

You've helped out by showing me how to use array to copy 2 sheets to a new
file and name that new file... the next problem I need help with is I need
to copy the formats as well... and not the links to the new file...
(Actually all I really need to do is format Column "A" to 0000)

I remember seeing info on something like this but I can't seem to find it...
I can do the copy formats on a normal copy/paste but it seems to lose
something in the translation when I try to use the same approach with this
array part of my macro...

Or is there a way to format column "A" before naming and saving the new
workbook?

sorry to be such a pain... but 35 restaurants will be pretty happy if I ever
get this project completed...

Greg



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default using array to copy formats as well...

With Workbooks("Book1.xls").Worksheets(1)
.Columns(1).Numberformat:="0000"
End With

--
regards,
Tom Ogilvy


"Gbiwan" wrote in message
...
HI!

You've helped out by showing me how to use array to copy 2 sheets to a new
file and name that new file... the next problem I need help with is I need
to copy the formats as well... and not the links to the new file...
(Actually all I really need to do is format Column "A" to 0000)

I remember seeing info on something like this but I can't seem to find

it...
I can do the copy formats on a normal copy/paste but it seems to lose
something in the translation when I try to use the same approach with this
array part of my macro...

Or is there a way to format column "A" before naming and saving the new
workbook?

sorry to be such a pain... but 35 restaurants will be pretty happy if I

ever
get this project completed...

Greg





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default using array to copy formats as well...

Thanks for getting back to me so quickly!
I copied the line into my macro but I get a
Compile error:
Expected:end of statement

What do I need to do next to fix this?

Sorry that I'm not making it easier for you...

Greg

"Tom Ogilvy" wrote in message
...
With Workbooks("Book1.xls").Worksheets(1)
.Columns(1).Numberformat:="0000"
End With

--
regards,
Tom Ogilvy


"Gbiwan" wrote in message
...
HI!

You've helped out by showing me how to use array to copy 2 sheets to a

new
file and name that new file... the next problem I need help with is I

need
to copy the formats as well... and not the links to the new file...
(Actually all I really need to do is format Column "A" to 0000)

I remember seeing info on something like this but I can't seem to find

it...
I can do the copy formats on a normal copy/paste but it seems to lose
something in the translation when I try to use the same approach with

this
array part of my macro...

Or is there a way to format column "A" before naming and saving the new
workbook?

sorry to be such a pain... but 35 restaurants will be pretty happy if I

ever
get this project completed...

Greg







  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default using array to copy formats as well...

got a stray colon in there

With Workbooks("Book1.xls").Worksheets(1)
.Columns(1).Numberformat = "0000"
End With


--
Regards,
Tom Ogilvy

"Gbiwan" wrote in message
...
Thanks for getting back to me so quickly!
I copied the line into my macro but I get a
Compile error:
Expected:end of statement

What do I need to do next to fix this?

Sorry that I'm not making it easier for you...

Greg

"Tom Ogilvy" wrote in message
...
With Workbooks("Book1.xls").Worksheets(1)
.Columns(1).Numberformat:="0000"
End With

--
regards,
Tom Ogilvy


"Gbiwan" wrote in message
...
HI!

You've helped out by showing me how to use array to copy 2 sheets to a

new
file and name that new file... the next problem I need help with is I

need
to copy the formats as well... and not the links to the new file...
(Actually all I really need to do is format Column "A" to 0000)

I remember seeing info on something like this but I can't seem to find

it...
I can do the copy formats on a normal copy/paste but it seems to lose
something in the translation when I try to use the same approach with

this
array part of my macro...

Or is there a way to format column "A" before naming and saving the

new
workbook?

sorry to be such a pain... but 35 restaurants will be pretty happy if

I
ever
get this project completed...

Greg









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
macro to copy formats shaji Excel Discussion (Misc queries) 1 February 19th 10 02:25 PM
Copy all formats and objects Learning VBA Excel Discussion (Misc queries) 5 January 23rd 10 11:25 PM
copy formats vlookup Andre Ronda Excel Worksheet Functions 1 September 4th 06 09:20 PM
What's the best way to add a row and copy formulas and formats? Michael at Sigcon Excel Discussion (Misc queries) 1 March 17th 06 02:43 PM
Copy worksheets and formats Ken Excel Discussion (Misc queries) 1 January 31st 05 12:00 AM


All times are GMT +1. The time now is 10:18 AM.

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

About Us

"It's about Microsoft Excel"