• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member
  • Login

on Mac |VBA & Macros|Excel Forum|My Online Training Hub

You are here: Home / on Mac |VBA & Macros|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumVBA & Macros on Mac
sp_PrintTopic sp_TopicIcon
on Mac
Avatar
llogballig

Active Member
Members
Level 0
Forum Posts: 4
Member Since:
May 23, 2020
sp_UserOfflineSmall Offline
1
June 2, 2020 - 2:33 am
sp_Permalink sp_Print

Hi,

I generated a VBA userform using 365. The code works fine on a PC. However, when I try to share the document with Mac users, I get a run-time error <Run-time error'380' Could not set the RowSource property. Invalid property value.> When I access the document on a Mac, the debugging error comes in the:

Sub Show_For ()
SampleSubmissionForm.()
End Sub

Can someone please help? Thanks in advanced

Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1550
Member Since:
October 5, 2010
sp_UserOnlineSmall Online
2
June 2, 2020 - 9:22 pm
sp_Permalink sp_Print

Hi,

In the Reset sub you have this line

iRow = [Counta(SampleList!A:A)] ' identifying the last row

but the sheet name is SampleReport so iRow is being set to 1.

At the bottom of the same sub this has the effect that in your IF, the ELSE is being executed so 

.lstList.RowSource = "SampleReport!A3:J65356"

is generating the error.  This happened to me on Windows 10, Excel 365 so it's not just a Mac thing.

I don't know why you want to set the RowSource to 65,00+ rows ?  But it doesn't like it.  Not sure what the max number of rows is in a ListBox, I thought it was around 65,000 but there may be a limit on the number of items (rows x columns) ?

Regards

Phil

Avatar
llogballig

Active Member
Members
Level 0
Forum Posts: 4
Member Since:
May 23, 2020
sp_UserOfflineSmall Offline
3
June 3, 2020 - 1:10 am
sp_Permalink sp_Print

Hi,

Thank you so much for your reply. I am at the very beginning with my excel training so I might need a bit more hand holding.  From your reply, I am to decrease the possible row source from 65356 to say 1000?  I tried this to no avail.  Also a very basic question, I know that Macs don't make use of ActiveX but will Mac users be able to access the template I made-enter/ save data?  Although the platforms are different, I thought userforms would accessible on Macs also.  Thanks in advanced.

Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1550
Member Since:
October 5, 2010
sp_UserOnlineSmall Online
4
June 3, 2020 - 8:47 am
sp_Permalink sp_Print

Hi,

What this section of code (in Reset) is doing is populating the list in the main section of the form.  It's loading rows from the sheet.

If iRow > 1 Then

.lstList.RowSource = "SampleReport!A3:J" & iRow

Else

.lstList.RowSource = "SampleReport!A3:J65356"

End If

If there is no data then I don't know that you need to load anything into the form, you could just have 

If iRow > 2 Then

.lstList.RowSource = "SampleReport!A3:J" & iRow

End If

Note that I've changed it to iRow > 2 because your data starts on row 3.

I can't definitively say that Mac users will be able to use what you create.  Mac's don' fully support VBA so you may have some calls in there that won't work.  Sorry, I do not have a Mac and don't have experience of using VBA on them.

Regards

Phil

Avatar
Velouria
London or thereabouts
Moderator
Members


Trusted Members

Moderators
Level 4
Forum Posts: 689
Member Since:
November 1, 2018
sp_UserOfflineSmall Offline
5
June 3, 2020 - 6:25 pm
sp_Permalink sp_Print

As mentioned on other forums where this was posted, you can't use Rowsource for a listbox (or combobox) on a Mac.

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Philip Treacy, QSolutions Group
Guest(s) 8
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 880
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 237
Jessica Stewart: 219
A.Maurizio: 213
Aye Mu: 201
Hans Hallebeek: 185
Newest Members:
Kate Dyka
Kwaje Alfred Mogga
thong nguyen
Appiagyei Kofi Frimpong
Hilary Burchfield
Richie Wright
Adel Kock
Barbara Murray
Doug Milne
Siobhan Stringer
Forum Stats:
Groups: 3
Forums: 24
Topics: 6547
Posts: 28656

 

Member Stats:
Guest Posters: 49
Members: 32832
Moderators: 2
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel Office Scripts
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook

Sign up to our newsletter and join over 400,000
others who learn Excel and Power BI with us.

 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate
  • Sponsor Our Newsletter

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.