Microsoft Office Forums

Go Back   Microsoft Office Forums > Microsoft Excel > Excel Programming

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 04-24-2019, 06:47 AM
vapulabis vapulabis is offline Windows 10 Office 2013
Novice
 
Join Date: Apr 2019
Posts: 2
vapulabis is on a distinguished road
Default Moving columns Automatically with Frozen Panes

name | dated columns incrementally increasing->
---------------------------------------------------------------------
name 1 |


name 2 |
name 3 |
name 4 |

the name column is a frozen pane column and the dated columns can move left or right depending on which date ( Row A ) you want to view for the information the table holds per person in column 1.

when I open the spreadsheet, is there a way I can use today's date and search for today's date in Row A, then make the table automatically slide left or right to make the selected column the first column after the frozen pane?
Reply With Quote
  #2  
Old 04-24-2019, 12:07 PM
p45cal p45cal is offline Windows 10 Office 2016
Expert
 
Join Date: Apr 2014
Posts: 253
p45cal has a spectacular aura aboutp45cal has a spectacular aura aboutp45cal has a spectacular aura about
Default

See the attached file.
Open it and allow macros, then move to Sheet1 (it was saved with Sheet2 being the active sheet). It will try to scroll the current date to be at the left. This does not change the selected cell, that may be off screen; this behaviour can be changed if you want.


The macro only runs on the file being opened. It could instead/as well, act every time you switch to that sheet; there is commented-out code to do that in Sheet1's code-module. You just have to enable it.
Attached Files
File Type: xlsm msofficeforums42334.xlsm (16.2 KB, 4 views)
Reply With Quote
  #3  
Old 04-24-2019, 11:18 PM
vapulabis vapulabis is offline Windows 10 Office 2013
Novice
 
Join Date: Apr 2019
Posts: 2
vapulabis is on a distinguished road
Default

Works a Charm, thank you very much
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Footnote Help- Automatically moving to next page thesisformatter Word 7 03-09-2016 09:57 PM
Moving from Rows to Columns jimmydd2121 Excel 1 06-02-2014 09:05 AM
moving columns in excel 2007 Straitsfan Excel 2 02-06-2013 04:07 PM
Moving columns plantzj Word 3 09-17-2011 10:30 AM
moving data from single to multiple columns? mzimmers Excel 3 08-23-2010 08:20 AM


All times are GMT -7. The time now is 10:19 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
MSOfficeForums.com is not affiliated with Microsoft