PC Review


Reply
Thread Tools Rate Thread

how do i automate parsing a workbook

 
 
=?Utf-8?B?ZW1tZQ==?=
Guest
Posts: n/a
 
      23rd Oct 2007
i have to parse out tabs from a workbook every month. is there a way to
automate that parsing in a macro? i am not a programmer. thanks!
 
Reply With Quote
 
 
 
 
Chip Pearson
Guest
Posts: n/a
 
      23rd Oct 2007
It is certainly possible, but you'd need to provide a LOT more detail.


"emme" <(E-Mail Removed)> wrote in message
news:CB817EF1-03F5-4AA3-8937-(E-Mail Removed)...
>i have to parse out tabs from a workbook every month. is there a way to
> automate that parsing in a macro? i am not a programmer. thanks!


 
Reply With Quote
 
=?Utf-8?B?ZW1tZQ==?=
Guest
Posts: n/a
 
      23rd Oct 2007
Ok. I get a workbook with about 60 tabs monthly. I have to separate several
tabs at a time not (in sequence) and copy them to a new work book that I
rename according to which tabs it contains. there are about 15 of these
workbooks. the tabs correspond to areas of responsibility and i have to then
send each workbook to the corresponding manager. Is that any clearer?

"Chip Pearson" wrote:

> It is certainly possible, but you'd need to provide a LOT more detail.
>
>
> "emme" <(E-Mail Removed)> wrote in message
> news:CB817EF1-03F5-4AA3-8937-(E-Mail Removed)...
> >i have to parse out tabs from a workbook every month. is there a way to
> > automate that parsing in a macro? i am not a programmer. thanks!

>

 
Reply With Quote
 
Chip Pearson
Guest
Posts: n/a
 
      23rd Oct 2007
You could begin with the following code. It doesn't do exactly what you
want, but should point you in the right direction.

Sub MoveSheets()
Dim SheetsToMove(1 To 3)
Dim WorkbookToMoveSheetsTo As Workbook

SheetsToMove(1) = "Sheet1"
SheetsToMove(2) = "Sheet3"
SheetsToMove(3) = "Sheet5"

Set WorkbookToMoveSheetsTo = Workbooks("Book3.xls")
With WorkbookToMoveSheetsTo.Worksheets
Worksheets(SheetsToMove).Move after:=.Item(.Count)
End With
End Sub



--
Cordially,
Chip Pearson
Microsoft MVP - Excel, 10 Years
Pearson Software Consulting
www.cpearson.com
(email on the web site)


"emme" <(E-Mail Removed)> wrote in message
news:608ADBF0-FD13-4CCF-80A4-(E-Mail Removed)...
> Ok. I get a workbook with about 60 tabs monthly. I have to separate
> several
> tabs at a time not (in sequence) and copy them to a new work book that I
> rename according to which tabs it contains. there are about 15 of these
> workbooks. the tabs correspond to areas of responsibility and i have to
> then
> send each workbook to the corresponding manager. Is that any clearer?
>
> "Chip Pearson" wrote:
>
>> It is certainly possible, but you'd need to provide a LOT more detail.
>>
>>
>> "emme" <(E-Mail Removed)> wrote in message
>> news:CB817EF1-03F5-4AA3-8937-(E-Mail Removed)...
>> >i have to parse out tabs from a workbook every month. is there a way to
>> > automate that parsing in a macro? i am not a programmer. thanks!

>>


 
Reply With Quote
 
=?Utf-8?B?ZW1tZQ==?=
Guest
Posts: n/a
 
      23rd Oct 2007
Great thanks.

"Chip Pearson" wrote:

> You could begin with the following code. It doesn't do exactly what you
> want, but should point you in the right direction.
>
> Sub MoveSheets()
> Dim SheetsToMove(1 To 3)
> Dim WorkbookToMoveSheetsTo As Workbook
>
> SheetsToMove(1) = "Sheet1"
> SheetsToMove(2) = "Sheet3"
> SheetsToMove(3) = "Sheet5"
>
> Set WorkbookToMoveSheetsTo = Workbooks("Book3.xls")
> With WorkbookToMoveSheetsTo.Worksheets
> Worksheets(SheetsToMove).Move after:=.Item(.Count)
> End With
> End Sub
>
>
>
> --
> Cordially,
> Chip Pearson
> Microsoft MVP - Excel, 10 Years
> Pearson Software Consulting
> www.cpearson.com
> (email on the web site)
>
>
> "emme" <(E-Mail Removed)> wrote in message
> news:608ADBF0-FD13-4CCF-80A4-(E-Mail Removed)...
> > Ok. I get a workbook with about 60 tabs monthly. I have to separate
> > several
> > tabs at a time not (in sequence) and copy them to a new work book that I
> > rename according to which tabs it contains. there are about 15 of these
> > workbooks. the tabs correspond to areas of responsibility and i have to
> > then
> > send each workbook to the corresponding manager. Is that any clearer?
> >
> > "Chip Pearson" wrote:
> >
> >> It is certainly possible, but you'd need to provide a LOT more detail.
> >>
> >>
> >> "emme" <(E-Mail Removed)> wrote in message
> >> news:CB817EF1-03F5-4AA3-8937-(E-Mail Removed)...
> >> >i have to parse out tabs from a workbook every month. is there a way to
> >> > automate that parsing in a macro? i am not a programmer. thanks!
> >>

>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automate export to a new workbook atledreier Microsoft Excel Misc 0 5th Jul 2007 07:25 AM
automate copy and paste whole workbook to new workbook =?Utf-8?B?TGVzbGll?= Microsoft Excel Programming 4 1st Jul 2005 04:40 PM
Automate Cut & Paste Rows to different tab in Workbook =?Utf-8?B?U3RhY2llIEZ1Z2F0ZQ==?= Microsoft Excel Programming 0 20th Jan 2005 05:11 PM
How to automate a macro to run on all sheets in a workbook Maurice Roche Microsoft Excel Programming 2 17th Feb 2004 03:05 PM
Automate emailing a workbook Dave Potter Microsoft Excel Misc 0 14th Aug 2003 03:32 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:49 AM.