Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / General Excel Questions / May 2008

Tip: Looking for answers? Try searching our database.

Working with multiple sheets

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nav - 29 May 2008 12:44 GMT
Hello

I am holding shift (or Ctrl) and adding data to the cells in all the sheets.
However the page does not appear to move on the other sheets although the
data has been input.

Eg. all sheets when viewed start at Col A Row 1.  I add data to col Z row 1
( the sheet I am working on now shows Col Z as the first col when viewed),
however when viewing the other sheets they still start at Col A (although the
data added is in the correct col/row).  

Is there a way that the cell selection for all the sheets can be done -
hence it actually moves with the sheet you are working on?

Any ideas appreciated and thank you in advance.

Regards, Nav
Don Guillett - 29 May 2008 13:29 GMT
Try

Sub gotoselections()
For Each sh In ActiveWorkbook.Windows(1).SelectedSheets
MsgBox sh.Name
Application.Goto sh.Range("k1") ', scroll:=True
Next
End Sub
Signature

Don Guillett
Microsoft MVP Excel
SalesAid Software
dguillett1@austin.rr.com

> Hello
>
[quoted text clipped - 16 lines]
>
> Regards, Nav
Nav - 29 May 2008 14:04 GMT
Tthis does the trick - I thought there would have been another way without VBA.

Thank you.

> Try
>
[quoted text clipped - 24 lines]
> >
> > Regards, Nav
Nav - 29 May 2008 14:31 GMT
Sorry - is there a way that it just follows the scrolling undertaken on the
first sheet instead of having to go into the macor and change the reference
all the time.

Thank you again.

> Tthis does the trick - I thought there would have been another way without VBA.
>
[quoted text clipped - 28 lines]
> > >
> > > Regards, Nav
Don Guillett - 29 May 2008 15:10 GMT
follows the scrolling ???

Signature

Don Guillett
Microsoft MVP Excel
SalesAid Software
dguillett1@austin.rr.com

> Sorry - is there a way that it just follows the scrolling undertaken on
> the
[quoted text clipped - 42 lines]
>> > >
>> > > Regards, Nav
Nav - 29 May 2008 15:23 GMT
Sorry if it is not clear.  But as I am entering data in the main sheet with
other sheets selected (by holding down  CTRL) I am not sure of which cell I
will end in (as it depends on the amount of data that requires entry).  Hence
is there a way that the other sheets will move to the correct cell too
without having to amend this in the macro.

ie. the sheet I am working on may start from coll AA to AN, whereas the
other sheets still remain on Col A currently - but I would like them to also
start from AA to AN when I select the sheet upon completion of entering the
data.

I hope this is a little clearer.

Thank you.

> follows the scrolling ???
>
[quoted text clipped - 44 lines]
> >> > >
> >> > > Regards, Nav
Don Guillett - 29 May 2008 15:49 GMT
Try it this way with the line below at the top of the module

Public mc

Sub gotoselections()
mc = ActiveCell.Column
For Each sh In ActiveWorkbook.Windows(1).SelectedSheets
MsgBox sh.Name
MsgBox mc
Application.Goto sh.Cells(1, mc) ', scroll:=True
Next
End Sub

Signature

Don Guillett
Microsoft MVP Excel
SalesAid Software
dguillett1@austin.rr.com

> Sorry if it is not clear.  But as I am entering data in the main sheet
> with
[quoted text clipped - 67 lines]
>> >> > >
>> >> > > Regards, Nav
Nav - 29 May 2008 17:20 GMT
Thank you - this works a lot better.

> Try it this way with the line below at the top of the module
>
[quoted text clipped - 80 lines]
> >> >> > >
> >> >> > > Regards, Nav
Don Guillett - 29 May 2008 17:37 GMT
Glad it helped

Signature

Don Guillett
Microsoft MVP Excel
SalesAid Software
dguillett1@austin.rr.com

> Thank you - this works a lot better.
>
[quoted text clipped - 87 lines]
>> >> >> > >
>> >> >> > > Regards, Nav
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.