?
Solved

Google spreadsheet

Posted on 2014-03-24
5
Medium Priority
?
367 Views
Last Modified: 2015-03-02
Hi All,

I have 3 sheets.
The rows B-G contain dates.
Row A contains Keywords.
The dates in each row are based on the dates entered in Column B.

I want sheet 4 to display the contents of the A rows of all 3 sheets IF the date is today….

Please find the attached excel sheet downloaded from google docs .

Thanks
Lernplan.xls
0
Comment
Question by:magento
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 15

Expert Comment

by:ChloesDad
ID: 39951806
The easiest way is by using a macro

Sub UpdateSheet(tableNo As Integer)
  
  Dim RowDate
  Dim NowDate
  Dim RowNumber As Integer
  Dim Heading As String
  
  
  
  ThisWorkbook.Sheets(tableNo).Activate
  RowNumber = 2
  
  For Each rw In ActiveSheet.Rows
    Heading = rw.Cells(1, 1).Value
  
    If Heading <> "" Then
    
        RowDate = Int(rw.Cells(1, 2).Value)
        NowDate = Int(Now)
        
        If RowDate = NowDate Then
    
            ThisWorkbook.Sheets(4).Cells(RowNumber, tableNo).Value = Heading
            RowNumber = RowNumber + 1
    
        End If
        
    End If
    
    
  
  
  Next




End Sub


Sub UpdateTable()

    Call UpdateSheet(1)
    Call UpdateSheet(2)
    Call UpdateSheet(3)


End Sub

Open in new window


You can then either call UpdateTable when the sheet loads, or set it up to be run on a hot key
0
 
LVL 5

Author Comment

by:magento
ID: 39952323
Hi,

If its an excel sheet i know how to add that macro . Is it possible to add them under google spreadsheet ? If so how ?

Thanks
0
 
LVL 5

Author Comment

by:magento
ID: 39952338
I created a module and pasted ur code and hit F5 , Nothing happened. Please advice.
0
 
LVL 15

Accepted Solution

by:
ChloesDad earned 2000 total points
ID: 39952492
Firstly, it is just an excel spread sheet, or at least that's what you posted. I was able to open it in excel.


I have attached your supplied spreadsheet with my code.

Click View-Macros - View Macro. You may have to enable Macros to be able to see it. You can then click on the play button and the macro will run.
Lernplan.xlsm
0
 
LVL 5

Author Closing Comment

by:magento
ID: 39955139
Thank you .
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
This Micro Tutorial demonstrates the importance of annotations in Google Analytics and how they should be used to document changes made to a site, Google updates (Ex: Panda & Penguin), marketing campaigns, and any other events that might have contri…
This Micro Tutorial will demonstrate the easy use of Gmail embedding images in your email so the recipient of your email can view them in context.

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question